3v4l.org

run code in 500+ PHP versions simultaneously
<?php $a = 5; $b = $a++-++$a; echo $b; // -2 echo $a; // 7 // This, sadly, doesn't compile //$b = $a+++++$a; $a = 5; $b = $a++ + ++$a; // 12 echo $b; // 12 echo $a; // 7

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.70.0080.00816.68
8.5.60.0090.00516.60
8.5.50.0100.00716.59
8.5.30.0120.00716.73
8.4.220.0110.00821.25
8.4.210.0140.00819.53
8.4.90.0170.00519.60
8.3.310.0050.00818.41
8.3.180.0050.00318.50
8.3.50.0090.00518.60
8.2.310.0130.00618.04

preferences:
43.64 ms | 529 KiB | 5 Q