3v4l.org

run code in 300+ PHP versions simultaneously
<?php $blah = false; echo “calling function \n”; try { test($blah); }catch(\Error $e){ echo “Caught\n”; print_r($e); } function test(array $val){ echo “inside test \n”; print_r($val); echo “\n”; } echo “done\n”;

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.1.70.0120.00316.91
7.1.60.0260.00635.18
7.1.50.0200.01634.54
7.1.40.0160.01634.19
7.1.30.0250.00634.52
7.1.20.0300.00934.36
7.1.10.0040.01216.27
7.1.00.0060.00916.22
7.0.200.0000.01816.64
7.0.190.0030.01216.46
7.0.180.0110.00415.98
7.0.170.0040.01416.21
7.0.160.0090.00915.98
7.0.150.0060.00915.96
7.0.140.0070.01016.06
7.0.130.0110.00816.58
7.0.120.0080.01016.28
7.0.110.0090.01315.94
7.0.100.0120.01016.21
7.0.90.0070.01516.29
7.0.80.0000.02016.11
7.0.70.0090.01216.32
7.0.60.0090.00616.00
7.0.50.0000.01716.20
7.0.40.0040.01416.50
7.0.30.0060.00916.28
7.0.20.0090.00616.20
7.0.10.0000.01416.52
7.0.00.0070.00716.34

preferences:
140.02 ms | 1394 KiB | 7 Q