Softwr

Web Development · head to head

AWS Fargate vs PHP

AWS Fargate logo

AWS Fargate

Web Development

Serverless compute for containers on ECS and EKS, billed per vCPU and GB second

From
$0.04048/vCPU-hour
Free plan
No
PHP logo

PHP

Web Development

A popular general-purpose scripting language that is especially suited to web development

From
Free
Free plan
Yes

The short version

  • PHP is an open source scripting language for web development.
  • PHP is free; AWS Fargate starts at $0.04048/mo.
  • Where AWS Fargate falls short: steady, high-utilisation workloads cost more per vCPU than the same capacity on EC2, especially with reservations or Savings Plans.
  • Where PHP falls short: function names and parameter ordering are inconsistent because the language grew without a single design.

How do AWS Fargate and PHP differ?

AWS Fargate and PHP differ on starting price ($0.04048/vCPU-hour against Free), pricing model and free tier (No against Yes). Only the attributes on which AWS Fargate and PHP actually diverge.

Attributes where AWS Fargate and PHP differ
AttributeAWS FargatePHP
Starting price$0.04048/vCPU-hourFree
Pricing modelPer vCPU and GB secondOpen-source
Free tierNoYes
PlatformsWeb, Linux, WindowsWeb

Not yet recorded: category for AWS Fargate, founded for AWS Fargate.

Which features does each one have?

They share no listed features; 6 appear only for AWS Fargate. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in AWS Fargate

  • No servers to manage
  • Per-second billing
  • Arm support
  • Fargate Spot
  • Task-level isolation
  • Windows containers

Only in PHP

Nothing recorded that AWS Fargate does not also cover.

What is each one used for?

AWS Fargate is most often brought in for running web services and APIs on ECS without managing EC2 nodes; PHP for server-side web development. The jobs each tool is most often brought in to do.

AWS Fargate

  • Running web services and APIs on ECS without managing EC2 nodesnot PHP
  • Scheduled batch tasks that run for minutes and then stopnot PHP
  • Small teams that cannot staff cluster operationsnot PHP
  • Burst capacity for EKS pods through Fargate profilesnot PHP

PHP

  • Server-side web developmentnot AWS Fargate
  • Content management systemsnot AWS Fargate
  • API backendsnot AWS Fargate

Where do AWS Fargate and PHP fall short?

AWS Fargate's most cited limit: there is no GPU support, which rules it out for machine learning inference that needs accelerators. PHP's: function names and parameter ordering are inconsistent because the language grew without a single design. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

AWS Fargate

  • Steady, high-utilisation workloads cost more per vCPU than the same capacity on EC2, especially with reservations or Savings Plans
  • There is no GPU support, which rules it out for machine learning inference that needs accelerators
  • Tasks cannot run privileged containers or use host-level access, which blocks some security and monitoring agents
  • Cold start for a new task takes longer than a warm EC2 node, which hurts bursty low-latency scaling
  • Rightsizing is coarse because vCPU and memory come in fixed combinations, so you can pay for memory you do not use

PHP

  • PHP 8.2 lost active support on 31 Dec 2024 and enters full end of life on 31 Dec 2026, with only security fixes since, per php.net/supported-versions.php (Aug 2026)
  • Function names and parameter ordering are inconsistent because the language grew without a single design
  • No abstract Unicode string type: strings are byte sequences in a specific encoding
  • Many sites still run unsupported older releases, such as PHP 7 and PHP 5

How much do AWS Fargate and PHP cost?

AWS Fargate starts at $0.04048/mo; PHP is free to use. Plan by plan below, from each vendor's own pricing page.

AWS Fargate

$0.04048/vCPU-hour
  • Linux x86$0.04048/vcpu-hour
    • $0.000011244 per vCPU per second
    • $0.000001235 per GB of memory per second
  • Linux Arm (Graviton)$0.03238/vcpu-hour
    • $0.0000089944 per vCPU per second
    • $0.0000009889 per GB of memory per second
  • Ephemeral storage$0.00011/gb-hour
    • $0.0000000308 per GB per second beyond the included 20 GB

PHP

Free

No published plan breakdown. See the PHP review.

Which should you pick?

Choose AWS Fargate if

  • You need no servers to manage.
  • You work on Web, Linux, Windows.
  • You also want per-second billing.

Choose PHP if

  • You want to start without paying.

Questions people ask

Is AWS Fargate or PHP better?
It depends on the job. AWS Fargate fits running web services and APIs on ECS without managing EC2 nodes; PHP fits server-side web development. AWS Fargate starts at $0.04048/vCPU-hour and PHP at Free.
Which is cheaper, AWS Fargate or PHP?
PHP has a free tier; the other does not. Paid plans start at $0.04048/vCPU-hour for AWS Fargate and Free for PHP.
Does AWS Fargate or PHP run on more platforms?
AWS Fargate runs on Web, Linux, Windows. PHP runs on Web.
Can I use PHP for free?
Yes. PHP has a free tier, so you can try it without paying. AWS Fargate starts at $0.04048/vCPU-hour.
What is AWS Fargate best used for?
AWS Fargate is most often used for running web services and apis on ecs without managing ec2 nodes, scheduled batch tasks that run for minutes and then stop, small teams that cannot staff cluster operations, burst capacity for eks pods through fargate profiles. Of those, running web services and apis on ecs without managing ec2 nodes and scheduled batch tasks that run for minutes and then stop are not what PHP is typically brought in for.
What can AWS Fargate do that PHP cannot?
AWS Fargate covers No servers to manage, Per-second billing, Arm support, Fargate Spot.

Answered from the vendors’ own pages

AWS Fargate: How much does Fargate cost?

Linux x86 is $0.000011244 per vCPU second and $0.000001235 per GB second in us-east-1, about $0.0405 and $0.0044 per hour, per AWS.

PHP: Is PHP free to use?

Yes, PHP is completely free and open-source software under the PHP Foundation governance. There are no licensing fees or paid tiers.

Source
AWS Fargate: Fargate or EC2?

Fargate removes node management and costs more per unit; EC2 is cheaper for steady, well-packed workloads.

PHP: Does the PHP Foundation offer paid support?

The PHP Foundation accepts voluntary donations to support long-term development, but donations are optional and not required to use PHP.

Source
AWS Fargate: Does it work with Kubernetes?

Yes, EKS can run pods on Fargate through Fargate profiles.

Share

Related pages

Other head to heads