3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function __construct($test) { } public function test() { } } class Test2 extends Test { public function __construct($test, $test2) { } public function test($test); }

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.10.0070.09020.06
7.0.00.0030.08320.09
5.6.160.0070.08720.71
5.6.150.0070.08018.25
5.6.140.0170.07318.28
5.6.130.0070.07318.14
5.6.120.0170.05721.00
5.6.110.0070.07721.02
5.6.100.0030.04020.99
5.6.90.0100.06021.13
5.6.80.0070.08320.38
5.5.300.0100.06317.95
5.5.290.0070.07718.00
5.5.280.0070.04720.85
5.5.270.0070.09020.68
5.5.260.0070.08020.76
5.5.250.0130.07020.61
5.5.240.0170.07320.26

preferences:
141.12 ms | 1394 KiB | 7 Q