3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 0x40; // 64 $b = ~$a; // flip bits, i.e. 2s complement so -$a and then minus 1 var_dump($b); // -65 decimal var_dump(base_convert($b, 10, 2), $b); // 65 printf(&quot;%b&quot;, $b); // 1000001 echo &quot;\n\n&quot;;

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)
7.0.20.0130.05320.07
7.0.10.0170.08320.09
7.0.00.0000.05020.16
5.6.170.0330.06320.48
5.6.160.0070.07320.39
5.6.150.0030.06318.15
5.6.140.0030.08318.24
5.6.130.0070.04018.29
5.6.120.0030.06021.14
5.6.110.0170.06721.00
5.6.100.0130.06320.95
5.6.90.0070.05721.10
5.6.80.0100.05320.38
5.5.310.0230.08320.26
5.5.300.0070.06017.95
5.5.290.0070.08017.95
5.5.280.0070.03720.89
5.5.270.0100.06020.89
5.5.260.0030.05320.82
5.5.250.0170.07720.79
5.5.240.0030.04020.18

preferences:
142.25 ms | 1394 KiB | 7 Q