3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Parent { public function __construct(&$foo) { } } class Child extends Parent { public function __construct() { parent::__construct(getFoo()); } } function getFoo() { return 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)
5.4.190.0080.03412.35
5.4.180.0050.03712.35
5.4.170.0230.06318.95
5.4.160.0130.05318.84
5.4.150.0070.06018.82
5.4.140.0100.05316.25
5.4.130.0100.05716.32
5.4.120.0200.05716.33
5.4.110.0130.06316.51
5.4.100.0100.07316.54
5.4.90.0070.05716.55
5.4.80.0130.05016.54
5.4.70.0100.07016.36
5.4.60.0130.06716.47
5.4.50.0230.06316.61
5.4.40.0170.04316.57
5.4.30.0070.05716.58
5.4.20.0030.07016.25
5.4.10.0070.05316.40
5.4.00.0070.07715.66
5.3.270.0170.08014.59
5.3.260.0070.06714.80
5.3.250.0170.05714.75
5.3.240.0170.04714.69
5.3.230.0170.05714.64
5.3.220.0030.06714.63
5.3.210.0070.07714.73
5.3.200.0200.06014.61
5.3.190.0200.05714.61
5.3.180.0130.05014.65
5.3.170.0130.05314.55
5.3.160.0130.05014.65
5.3.150.0070.07314.54
5.3.140.0170.06714.71
5.3.130.0170.05014.68
5.3.120.0200.05314.71
5.3.110.0070.07014.48
5.3.100.0070.06014.07
5.3.90.0000.08013.82
5.3.80.0070.05714.00
5.3.70.0170.04713.99
5.3.60.0130.05714.15
5.3.50.0170.04313.87
5.3.40.0070.05014.02
5.3.30.0030.05313.95
5.3.20.0030.05713.88
5.3.10.0070.04713.80
5.3.00.0170.05013.70

preferences:
135.37 ms | 1398 KiB | 7 Q