3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Parent { public function test(stdClass $thing) { print($thing); } } class Child extends Parent { public function test($thing = null) { print($thing); } } $child = new Child(); $child->test(new stdClass());

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.0270.05720.12
7.0.10.0030.05020.09
7.0.00.0070.07720.02
5.6.170.0270.04320.52
5.6.160.0070.03720.37
5.6.150.0100.08318.09
5.6.140.0030.04318.21
5.6.130.0030.05318.18
5.6.120.0200.07021.05
5.6.110.0070.05321.04
5.6.100.0170.06321.02
5.6.90.0070.04320.97
5.6.80.0170.06720.38
5.5.310.0230.04020.17
5.5.300.0100.05317.93
5.5.290.0100.07717.96
5.5.280.0070.05720.89
5.5.270.0070.09020.86
5.5.260.0100.08320.96
5.5.250.0070.07020.61
5.5.240.4170.04020.27

preferences:
145.79 ms | 1394 KiB | 7 Q