3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($var){ echo "in function: ",__FUNCTION__; echo "testing $var\n"; } class bla { public $foo = "test"; public function bar($str) { echo $this->foo($str),"\n"; // php5 fails w/o method below specified } } (new objBla())->foo)("nother val");

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.0230.05320.08
7.0.10.0130.08320.23
7.0.00.0070.05720.32
5.6.170.0170.04320.47
5.6.160.0030.04320.57
5.6.150.0070.04318.29
5.6.140.0070.06718.21
5.6.130.0070.08018.18
5.6.120.0200.07021.02
5.6.110.0030.07321.05
5.6.100.0030.04020.99
5.6.90.0130.07721.00
5.6.80.0170.06720.36
5.5.310.0370.06020.20
5.5.300.0130.06318.07
5.5.290.0000.05718.09
5.5.280.0000.04320.80
5.5.270.0070.08320.87
5.5.260.0100.07720.64
5.5.250.0030.04020.59
5.5.240.0270.05020.19

preferences:
138.31 ms | 1394 KiB | 7 Q