3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($var) { echo "Test $var"; } class foo { var $arr = array("test"); /*function test($var) { echo "Test $var"; }*/ } class moo { static public function test2(){ echo "test2"; } } $a = new foo(); var_dump($a); $a->arr[0]("testvalue"); /***************************/ $x[0] = 'test2' moo::$x[0]();

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.07020.07
7.0.10.0130.05020.17
7.0.00.0130.06020.19
5.6.170.0200.05720.44
5.6.160.0030.05320.39
5.6.150.0030.07018.14
5.6.140.0170.07318.23
5.6.130.0030.08318.24
5.6.120.0100.07721.03
5.6.110.0030.04321.00
5.6.100.0170.07021.20
5.6.90.0070.03720.98
5.6.80.0100.08020.40
5.5.310.0230.05020.30
5.5.300.0070.04017.97
5.5.290.0130.07317.95
5.5.280.0070.08720.85
5.5.270.0070.08720.96
5.5.260.0030.04320.68
5.5.250.0070.03720.54
5.5.240.0170.07720.16

preferences:
127.47 ms | 1398 KiB | 7 Q