3v4l.org

run code in 300+ PHP versions simultaneously
<?php private class myparent { public function foo($bar) { // do stuff } } class mychild extends myparent { public $val; private function bar(myparent &$baz) { // do stuff } public function __construct($val) { $this->val = $val; } } $child = new mychild('hello world'); $child->foo('test'); $reflection = new reflectionClass('myparent'); echo $reflection->isInstantiable() ? 'yes' : 'no';

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.0090.03912.38
5.4.180.0100.04912.38
5.4.170.0130.04612.38
5.4.160.0130.04412.37
5.4.150.0130.04312.37
5.4.140.0130.04012.06
5.4.130.0100.04312.04
5.4.120.0110.04112.01
5.4.110.0130.04012.00
5.4.100.0200.06512.00
5.4.90.0120.04512.00
5.4.80.0160.04412.00
5.4.70.0110.04312.00
5.4.60.0150.05712.00
5.4.50.0120.04212.00
5.4.40.0120.03911.98
5.4.30.0120.04111.98
5.4.20.0100.04011.98
5.4.10.0140.03911.98
5.4.00.0120.04311.47
5.3.270.0160.04212.72
5.3.260.0130.04712.72
5.3.250.0260.07212.72
5.3.240.0140.04912.72
5.3.230.0110.05312.71
5.3.220.0130.05212.68
5.3.210.0150.05312.68
5.3.200.0140.04912.68
5.3.190.0290.05812.68
5.3.180.0290.06112.67
5.3.170.0180.05412.67
5.3.160.0190.05612.68
5.3.150.0150.04912.67
5.3.140.0160.04612.66
5.3.130.0200.08012.65
5.3.120.0180.05312.66
5.3.110.0210.07812.66
5.3.100.0300.08912.12
5.3.90.0270.06312.08
5.3.80.0220.07112.07
5.3.70.0240.06612.07
5.3.60.0140.04312.06
5.3.50.0260.06812.00
5.3.40.0150.04512.00
5.3.30.0240.06911.95
5.3.20.0240.06911.73
5.3.10.0200.05611.69
5.3.00.0120.05011.67

preferences:
134.44 ms | 1394 KiB | 7 Q