3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); $f=function($var){ echo "the closure test $var\n"; }; class Bla { public $foo = $f; } $bla = new Bla($f); ($bla->foo)("someval");

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.0200.04020.24
7.0.10.0070.08720.33
7.0.00.0000.06320.25
5.6.170.0230.03720.50
5.6.160.0170.06720.54
5.6.150.0100.07318.22
5.6.140.0100.06318.28
5.6.130.0030.04318.12
5.6.120.0000.06721.04
5.6.110.0000.05021.14
5.6.100.0100.05320.96
5.6.90.0170.06721.01
5.6.80.0130.07720.41
5.5.310.0330.07320.25
5.5.300.0070.08318.05
5.5.290.0070.06718.03
5.5.280.0030.06320.88
5.5.270.0100.04320.87
5.5.260.0000.05020.73
5.5.250.0100.07720.69
5.5.240.0130.03020.12

preferences:
141.7 ms | 1394 KiB | 7 Q