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

preferences:
41.24 ms | 492 KiB | 5 Q