3v4l.org

run code in 300+ PHP versions simultaneously
<?php final class Deployment { /** * @param array<string, list<string>> $pipelineStages */ public function run(array $pipelineStages): void { $pipeline = new Fiber(function (array $pipelineStages): string { Fiber::suspend('Pipeline initialized.'); foreach ($pipelineStages as $stage => $steps) { foreach ($steps as $step) { Fiber::suspend("Stage '{$stage}': step '{$step}' completed."); } } return 'Deployment successful.'; }); $monitor = new Fiber(function (): string { Fiber::suspend('Monitoring system initialized.'); while (true) { Fiber::suspend('System health: OK.'); } }); $pipeline->start($pipelineStages); $monitor->start(); while (! $pipeline->isTerminated()) { printf("[Pipeline] %s\n", $pipeline->resume()); printf("[Monitor] %s\n", $monitor->resume()); } $result = $pipeline->getReturn(); printf("[Result] %s\n", $result); } } $stages = [ 'build' => ['compile', 'lint', 'optimize'], 'test' => ['unit', 'integration', 'e2e'], 'package' => ['zip', 'sign'], 'deploy' => ['upload', 'release', 'notify'], ]; (new Deployment())->run($stages);

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.4.120.0130.00820.26
8.4.110.0130.00722.44
8.4.100.0040.00717.90
8.4.90.0150.00820.34
8.4.80.0050.00518.00
8.4.70.0090.00418.02
8.4.60.0200.00418.05
8.4.50.0150.00417.76
8.4.40.0110.01017.38
8.4.30.0180.00517.52
8.4.20.0140.01017.61
8.4.10.0170.00617.74
8.3.250.0070.00918.79
8.3.240.0080.00816.61
8.3.230.0160.00716.46
8.3.220.0080.00316.88
8.3.210.0050.00616.63
8.3.200.0210.00316.59
8.3.190.0180.00416.31
8.3.180.0040.00516.45
8.3.170.0180.00716.67
8.3.160.0180.00616.62
8.3.150.0210.00416.73
8.3.140.0190.00516.16
8.3.130.0150.00616.61
8.3.120.0190.00416.51
8.3.110.0180.00616.36
8.3.100.0190.00616.73
8.3.90.0200.00316.39
8.3.80.0200.00516.84
8.3.70.0200.00516.52
8.3.60.0210.00416.52
8.3.50.0040.00816.70
8.3.40.0180.00117.57
8.3.30.0130.00717.66
8.3.20.0150.00717.39
8.3.10.0120.00817.36
8.3.00.0100.00217.57
8.2.290.0170.00316.48
8.2.280.0150.00416.58
8.2.270.0140.00516.39
8.2.260.0160.00516.39
8.2.250.0140.00616.68
8.2.240.0150.00616.57
8.2.230.0100.00616.17
8.2.220.0130.00316.34
8.2.210.0130.00516.24
8.2.200.0070.00916.45
8.2.190.0150.00216.58
8.2.180.0110.00616.54
8.2.170.0150.00417.19
8.2.160.0130.00517.40
8.2.150.0070.00416.78
8.2.140.0060.00416.89
8.2.130.0070.00417.20
8.2.120.0040.00617.25
8.2.110.0060.00417.77
8.2.100.0060.00417.84
8.2.90.0060.00617.82
8.2.80.0060.00517.59
8.2.70.0070.00417.61
8.2.60.0070.00417.75
8.2.50.0050.00517.51
8.2.40.0070.00417.83
8.2.30.0040.00717.74
8.2.20.0070.00417.39
8.2.10.0070.00417.69
8.2.00.0060.00517.56

preferences:
26.63 ms | 403 KiB | 5 Q