Guide · PHP & Laravel

Laravel Rust is here: what it means if you write PHP

On 1 December 2026 the Laravel team released Laravel Rust, a Rust web framework with Laravel's conventions, and a benchmark that says it handles 18x the traffic of Laravel PHP. Here is what it actually is, what that number measured, where PHP stands on the web today, and why most Laravel developers have already been running Rust for months without writing a line of it.

The short answer

  • Laravel Rust is a new framework, not a faster PHP. You write your app in Rust. Laravel PHP stays as it is.
  • It's a beta. Laravel plans to call it stable after six to eight weeks of feedback, so early 2027 at the earliest.
  • The 18x is real but narrow: peak throughput of a tiny read-only API. Real apps won't see that, but even a 5x gain would be a big improvement.
  • PHP still runs about two thirds of the web (67.7% of sites with a known server-side language). Laravel is a small slice of that, roughly 1 to 3% of sites.
  • Rust already won the build step. Since Vite 8, every Laravel app on Vite bundles with Rolldown, which is written in Rust. When I moved a large Laravel app off webpack, builds went from minutes to a few seconds.

What Laravel Rust is

Laravel Rust is a full-stack web framework for Rust, built on Axum and Tokio, from the same team that makes Laravel. Taylor Otwell calls it “Laravel reimagined in idiomatic Rust” and says it is not a line-by-line port. It's free and open source under the MIT license, like Laravel PHP. Your app compiles into one binary, which you deploy on your own servers or on Laravel Cloud.

If you know Laravel, most of the names will feel familiar:

In Laravel PHPIn Laravel Rust
Eloquent models#[model] structs; wrong column names or types fail at compile time
Form requests#[laravel::input] structs with #[validate(...)]
MigrationsRust files in database/migrations/, compiled into the binary
BladeTemplates in Jinja syntax, with layouts and components
ArtisanThe laravel CLI: laravel migrate, laravel route:list
Queues and jobs#[job] structs on database, Redis or SQS, plus durable workflows
Reverb, InertiaA Reverb-compatible WebSocket server in Rust; Inertia with React, Vue or Svelte
Deploy PHP files to PHP-FPMDeploy one compiled binary

A route and its handler look like this (adapted from the examples on laravel.com/rust):

Rust · src/routes/web.rs and a handler
route.get("/posts", posts::index);

pub async fn index() -> laravel::Result<Page> {
    let posts = Post::query()
        .filter(Post::votes.gt(100))
        .order_by(Post::published_at.desc())
        .get()
        .await?;
    // ...render the page with `posts`
}

And validation, which in Laravel PHP would be a form request:

Rust · input struct
#[laravel::input(fills = Post)]
#[validate(authenticated)]
pub struct StorePost {
    #[validate(required, max_length(255))]
    title: String,
}

It reads like Laravel, but it is Rust: the borrow checker, async/await, Result types and compile times all come with it. Spatie has already ported some of its packages, but the package ecosystem is weeks old, not fifteen years.

How much of the web runs PHP

Before asking whether Laravel developers should move to Rust, it helps to see how big the PHP world is. According to W3Techs, on 4 December 2026 PHP is used by 67.7% of all websites whose server-side language they can detect. Nothing else comes close:

Server-side languages on websitesShare of websites with a known server-side language, W3Techs, 4 December 2026: PHP 67.7%, JavaScript 9.2%, Ruby 7.4%, Java 5.5%, Scala 5.1%, ASP.NET 4.1%.PHP67.7%JavaScript9.2%Ruby7.4%Java5.5%Scala5.1%ASP.NET4.1%
Share of websites with a known server-side language. A site can use more than one. Source: W3Techs, 4 December 2026.

Two caveats. First, the share is slowly shrinking: W3Techs had PHP at around 77% in mid-2023. Second, most of it is WordPress and other CMSs, not custom apps. On the same page, 70.4% of PHP sites run PHP 8, and almost 7% are still on PHP 5.

And Laravel?

Laravel is harder to count, because a Laravel app often looks like any other website from the outside. W3Techs doesn't publish a figure for it. WhatCMS detects it on about 3% of the top million sites; other trackers report under 1% of all sites. My rough estimate: Laravel runs somewhere between 1 and 3% of websites, which is small next to WordPress but a lot of custom business apps. Those apps are the ones Laravel Rust is aimed at.

The 18x benchmark, read carefully

Laravel published the benchmark with the launch. The same small app was built in seven frameworks and deployed on the same Laravel Cloud instance size (Pro, 4 GiB). Traffic ramped from 1 to 2,000 requests per second over 20 minutes, and each framework's best 10-second window without errors counts:

Peak requests per secondBest 10-second window without errors: Laravel Rust 1,774, Laravel Go 1,294, Rails 253, Django 183, Laravel PHP 97.Laravel Rust1,774Laravel Go1,294Rails253Django183Laravel PHP97
Peak requests per second, same instance size. Laravel's own numbers, published 1 December 2026.

That's the headline. The rest of the post is more useful:

Laravel RustLaravel PHP
Peak requests per second1,77497
Median latency at 50 req/s62 ms78 ms
CPU at 50 req/s (max)4.2%52.4%
Memory at 50 req/s (max)16 MB134 MB
Wake from sleep (median)154 ms712 ms
Cold build on Laravel Cloud (median)3 min 1 s27 s

What I take from it:

  • At normal traffic, users wouldn't notice. At 50 requests per second, the median response was 62 ms against 78 ms. The real gap is resources: Laravel PHP used about 12 times the CPU for the same work. That matters when you pay for servers, or when a traffic spike hits.
  • The test app was tiny. Two read-only JSON endpoints and 200 rows in MySQL. Real apps spend much of their time waiting on the database and other services, and Rust doesn't make those faster. The author says the same.
  • The PHP setup isn't stated. The post doesn't say whether Laravel PHP ran on PHP-FPM or on Octane, which keeps the app in memory between requests and changes the numbers a lot.
  • Rust moves the waiting to the build. A cold build took about 3 minutes against 27 seconds for PHP. Locally it was better (19.4 s cold, 1.1 s incremental on an M4 Pro), but you'll feel compile times in CI.

So don't expect 18x in a real app. A real Laravel app does more per request: bigger queries, more middleware, calls to other services, and much of that time is spent waiting, which Rust can't speed up. But the gap doesn't have to stay at 18x to matter. Even a 5x gain means the same traffic on a fifth of the servers, or five times the headroom before a spike takes the app down. That is a big improvement for any team paying for servers.

That last point is the one I found most interesting, because on the frontend side of a Laravel app, Rust has been doing the opposite: making builds shorter.

Rust already won the build step

Most Laravel apps already run Rust code on every build, through Vite. The path there took two steps:

How a Laravel app's frontend build changedLaravel Mix on webpack, written in JavaScript; then Vite 6 with esbuild in Go and Rollup in JavaScript, from May 2025 in my project; then Vite 8 with Rolldown in Rust, released March 2026.Laravel Mix · webpackJavaScriptVite 6 · esbuild + RollupGo + JSVite 8 · RolldownRust
The frontend toolchain of a typical Laravel app since 2024. The bundler moved from JavaScript to native code.

What it was like for me

I work on a large Laravel app: about 2,300 frontend files, including 353 Vue components. Until May 2025 it built with Laravel Mix on webpack 5. A build took minutes. Every change to the frontend meant waiting, and the wait was long enough to switch to something else and lose the thread.

In May 2025 I moved it to Vite. The change was mostly config: webpack.mix.js became vite.config.js, the Blade layouts swapped mix() for the @vite directive, the CSS files became imports in the main JavaScript entry, and the __webpack_public_path__ workaround could go. The lockfile went from 1,787 packages to 1,328, though I also removed some unused packages in the same change. After the move, the build itself took a few seconds. Counting the whole pipeline, with install and deploy, it went from about 3 minutes to under 20 seconds, as I wrote in my Vue 2 to Vue 3 guide.

That doesn't sound dramatic written down. In practice it changed how I work: I stopped batching frontend changes to avoid waiting for builds, and just tried things.

Was that Rust? Not yet

To be fair to the timeline: in May 2025 the project went to Vite 6, which used esbuild (written in Go) for development and Rollup (JavaScript) for production builds. Most of that first speed-up came from Vite's design: in development it serves your files to the browser as native ES modules instead of bundling everything up front, and it only transforms what the page asks for.

Rust arrived with Vite 8 on 12 March 2026, which replaced both esbuild and Rollup with one bundler, Rolldown, written in Rust. The Vite team quotes builds 10 to 30 times faster. The same app now runs on Vite 8.2. And if you use Tailwind CSS 4, its engine and the CSS minifier it uses, Lightning CSS, are Rust too.

So the Laravel world adopted Rust the easy way: hidden behind npm run build, with plugins still written in JavaScript. Nobody had to learn the borrow checker. Laravel Rust asks for much more: your whole backend, in Rust.

Should you switch?

Your situationMy advice
Existing Laravel PHP app that worksStay. Laravel PHP isn't going anywhere, and a rewrite is a rewrite.
Slow frontend builds on Laravel MixMove to Vite 8 first. It's the cheapest Rust you'll ever adopt.
One hot endpoint or a heavy queue workerTry Octane or a better query first; then consider a small Rust service next to the PHP app.
New API with high traffic or tight server budgetWorth a prototype in Laravel Rust, if the team is ready to learn Rust.
Production app that needs to be stable next monthWait for 1.0. Beta releases can still change APIs and config.

The cost of Laravel Rust is people, not servers. A PHP team learning Rust will be slower for months, and hiring Rust developers is harder than hiring PHP ones. What makes it interesting is that it lowers that cost: the structure, the CLI and the docs are the ones Laravel developers already know. I wrote about the same trade-off for serverless in AWS Lambda cost optimization with Rust and arm64: move only the hot path, keep the rest.

How to try it

You need Rust 1.99 or later (install it with rustup), Node.js for the frontend, and Git. Then, from the installation docs:

Shell
curl -fsSL https://laravel.com/install.sh | sh
laravel new example-app --rust
cd example-app
laravel migrate
laravel dev   # app on http://127.0.0.1:8000

New apps come with Inertia, React, TypeScript, Tailwind and Vite Plus. If you already have Laravel Herd or the old Composer installer, check which laravel binary is first on your PATH.

Sources and limits

The Laravel Rust details and benchmark numbers come from Laravel's launch posts of 1 December 2026; I haven't run the benchmark myself. The PHP figures come from W3Techs on 4 December 2026. The Laravel share is a rough range from trackers that disagree with each other. My build times are from my own work on one large Laravel app: I didn't keep exact timings from the webpack days, so I give them as I remember them, minutes against seconds.

FAQ

What is Laravel Rust?

A full-stack web framework for Rust made by the Laravel team, released as a beta on 1 December 2026. It is built on Axum and Tokio and brings Laravel's conventions to Rust: routing, models, migrations, validation, queues, auth, Inertia and a laravel CLI. It is open source under the MIT license.

Does Laravel Rust replace Laravel PHP?

No. Laravel PHP is unchanged and still supported. Laravel Rust is a separate framework, and you write your app in Rust, not PHP. Your existing PHP code does not run on it.

Is Laravel Rust really 18x faster than Laravel PHP?

In Laravel's own benchmark it handled 1,774 requests per second against 97 for Laravel PHP, on the same Laravel Cloud instance size. The app was a small read-only JSON API with 200 rows in the database, and the post doesn't say how PHP was served. Real apps won't see 18x, but even a 5x gain would be a big improvement in server costs and headroom.

How much of the web uses PHP?

According to W3Techs on 4 December 2026, PHP is used by 67.7% of websites whose server-side language is known. The next one, JavaScript, is at 9.2%. Most of that PHP share is WordPress and other CMSs.

How many websites use Laravel?

There is no reliable single number, because trackers detect it differently. WhatCMS finds Laravel on about 3% of the top million sites; other trackers report under 1% of all sites. A fair rough estimate is 1 to 3% of websites.

Is Vite written in Rust?

Since Vite 8 (March 2026), its bundler is Rolldown, which is written in Rust. Vite itself is still written in TypeScript and its plugins in JavaScript. Before Vite 8 it used esbuild, written in Go, and Rollup, written in JavaScript.