3v4l.org

run code in 300+ PHP versions simultaneously
<?php class bla { public $foo = function ($var){ echo "closure test $var\n"; }; public function bar($str) { echo ($this->foo)($str); } } $objBla = new bla(); $objBla->bar("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.0330.05320.12
7.0.10.0130.05320.17
7.0.00.0130.04720.22
5.6.170.0300.06020.40
5.6.160.0070.08720.52
5.6.150.0070.03718.12
5.6.140.0070.04018.14
5.6.130.0100.05318.18
5.6.120.0030.04020.96
5.6.110.0030.08720.93
5.6.100.0030.09020.97
5.6.90.0030.08720.96
5.6.80.0200.07020.48
5.5.310.0300.05020.25
5.5.300.0100.08018.09
5.5.290.0070.08018.04
5.5.280.0130.07720.73
5.5.270.0000.04720.75
5.5.260.0100.06320.73
5.5.250.0030.04720.49
5.5.240.4300.04020.28

preferences:
140.81 ms | 1394 KiB | 7 Q