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.08320.26
7.0.10.0070.04320.16
7.0.00.0070.05720.30
5.6.170.0270.08020.55
5.6.160.0030.04720.57
5.6.150.0030.04018.28
5.6.140.0100.07718.24
5.6.130.0070.07318.27
5.6.120.0000.04320.98
5.6.110.0130.06721.13
5.6.100.0130.05320.88
5.6.90.0030.05020.99
5.6.80.0130.07320.37
5.5.310.0270.08020.37
5.5.300.0130.06318.03
5.5.290.0100.04318.05
5.5.280.0100.08320.80
5.5.270.0100.07720.79
5.5.260.0070.08720.79
5.5.250.0070.08320.57
5.5.240.4170.04020.25

preferences:
141.24 ms | 1394 KiB | 7 Q