3v4l.org

run code in 300+ PHP versions simultaneously
<?php class f { function f(&$e, &$u, $f=false) { } } function getNew() { $a = func_get_args(); $c = array_shift($a); foreach ($a as $k => &$value) $a[$k] = $value; //return call_user_func_array(array('f', 'f'), $c); $r = new ReflectionClass($c); return $r->newInstanceArgs($a); } $e = new stdClass; $u = new stdClass; var_dump(getNew('f', $e, $u)); getNew(new ('f', $e, $u));

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.220.0310.06512.38
5.4.210.0180.04712.38
5.4.200.0170.05312.39
5.4.190.0470.08312.38
5.4.180.0200.05012.38
5.4.170.0240.04812.39
5.4.160.0180.05712.39
5.4.150.0490.08812.38
5.4.140.0360.07712.08
5.4.130.0240.07012.05
5.4.120.0610.11212.02
5.4.110.0550.08012.02
5.4.100.0470.08812.02
5.4.90.0450.08712.02
5.4.80.0210.05412.02
5.4.70.0360.09012.01
5.4.60.0370.06812.02
5.4.50.0350.09112.01
5.4.40.0400.09012.00
5.4.30.0400.06611.99
5.4.20.0200.05311.99
5.4.10.0440.11612.00
5.4.00.0190.05111.48
5.3.270.0900.15212.73
5.3.260.0420.09612.72
5.3.250.0500.08512.72
5.3.240.0420.11812.72
5.3.230.0370.10712.71
5.3.220.0390.09312.68
5.3.210.0650.16012.68
5.3.200.0330.07012.68
5.3.190.0310.08112.68
5.3.180.0290.04512.67
5.3.170.0220.04812.66
5.3.160.0450.08512.68
5.3.150.0430.09112.67
5.3.140.0190.05112.66
5.3.130.0510.08212.66
5.3.120.0280.04612.66
5.3.110.0420.08712.65
5.3.100.0190.05012.12
5.3.90.0190.04712.09
5.3.80.0390.02212.07
5.3.70.0160.05012.08
5.3.60.0540.07912.07
5.3.50.0370.09012.00
5.3.40.0240.04012.00
5.3.30.0360.08711.98
5.3.20.0200.04911.75
5.3.10.0190.04011.72
5.3.00.0160.04411.70

preferences:
143.15 ms | 1394 KiB | 7 Q