3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Wtf { public function __get($property) { \Fiber::suspend(); echo "hi " . $property . "\n"; } } $fibers[] = new \Fiber(function () { $wtf = new Wtf(); echo $wtf->a; }); $fibers[] = new \Fiber(function () { $wtf = new Wtf(); echo $wtf->b; }); while (\count($fibers) > 0) { foreach ($fibers as $key => $fiber) { if (!$fiber->isStarted()) { $fiber->start(); } elseif ($fiber->isSuspended()) { $fiber->resume(); } // If the Fiber hasn't terminated by this point, move onto the next // placeholder, we'll resume this Fiber again when we get back here. if (!$fiber->isTerminated()) { continue; } unset($fibers[$key]); } }

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.5.30.0100.01019.57
8.5.20.0120.00520.24
8.5.10.0110.00916.83
8.5.00.0090.01016.88
8.4.180.0120.01119.52
8.4.170.0080.01423.91
8.4.160.0120.01022.98
8.4.150.0110.01119.62
8.4.140.0280.01017.61
8.4.130.0330.01017.65
8.4.120.0240.00917.84
8.4.110.0290.01517.58
8.4.100.0400.00817.82
8.4.90.0320.01217.52
8.4.80.0400.00817.89
8.4.70.0390.01217.59
8.4.60.0410.00917.61
8.4.50.0390.00917.81
8.4.40.0350.01217.79
8.4.30.0400.00817.46
8.4.20.0390.01017.85
8.4.10.0410.00817.79
8.3.300.0060.00420.92
8.3.290.0140.00821.00
8.3.280.0200.00818.41
8.3.270.0320.01016.53
8.3.260.0330.00916.56
8.3.250.0370.00716.56
8.3.240.0370.00716.65
8.3.230.0430.00516.55
8.3.220.0330.01016.63
8.3.210.0290.01216.62
8.3.200.0340.01016.72
8.3.190.0340.01116.50
8.3.180.0340.00916.37
8.3.170.0370.00916.63
8.3.160.0380.00616.60
8.3.150.0400.01116.55
8.3.140.0420.00716.60
8.3.130.0350.01016.78
8.3.120.0370.01016.91
8.3.110.0310.00716.78
8.3.100.0350.00416.49
8.3.90.0310.01416.59
8.3.80.0380.00716.73
8.3.70.0350.01116.66
8.3.60.0340.00916.38
8.3.50.0430.00616.55
8.3.40.0360.01017.98
8.3.30.0280.00917.79
8.3.20.0270.00917.86
8.3.10.0230.01117.81
8.3.00.0290.00717.90
8.2.300.0100.01020.40
8.2.290.0270.00816.24
8.2.280.0350.00516.48
8.2.270.0340.00916.64
8.2.260.0300.01316.41
8.2.250.0320.00716.37
8.2.240.0310.01116.48
8.2.230.0320.00816.18
8.2.220.0310.00516.52
8.2.210.0330.00716.40
8.2.200.0250.01216.65
8.2.190.0290.00916.43
8.2.180.0360.00716.64
8.2.170.0290.00817.81
8.2.160.0310.00917.93
8.2.150.0350.00917.77
8.2.140.0310.01517.85
8.2.130.0350.00817.82
8.2.120.0290.01017.92
8.2.110.0280.01017.98
8.2.100.0340.00417.54
8.2.90.0320.00917.96
8.2.80.0330.00617.80
8.2.70.0280.01017.84
8.2.60.0300.00817.73
8.2.50.0270.00817.66
8.2.40.0280.01117.85
8.2.30.0290.00617.57
8.2.20.0300.00717.73
8.2.10.0300.01117.79
8.2.00.0310.00817.71
8.1.340.0130.00617.74

preferences:
43.11 ms | 833 KiB | 5 Q