3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function foo(&$arg1) { var_dump('arg1: ', $arg1); } } class B extends A { public function bar() { $x = new stdClass(); $x->baz = 'just a value'; $this->callPrivate($x); } private function callPrivate($x) { $method = new \ReflectionMethod( 'A', 'foo' ); //working 5.4 (* see above) but not in 5.5 $arguments = func_get_args(); return $method->invokeArgs($this, $arguments); } } $obj = new B; $obj->bar();

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)
8.3.60.0140.00718.45
8.3.50.0110.00616.51
8.3.40.0150.00018.70
8.3.30.0070.00718.76
8.3.20.0070.00718.57
8.3.10.0040.00420.50
8.3.00.0050.00317.50
8.2.180.0140.00716.75
8.2.170.0090.00622.96
8.2.160.0070.00722.12
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0090.00919.77
8.2.110.0070.00321.04
8.2.100.0080.00317.91
8.2.90.0050.00519.07
8.2.80.0050.00318.04
8.2.70.0050.00717.63
8.2.60.0000.00817.91
8.2.50.0080.00018.07
8.2.40.0030.00519.88
8.2.30.0000.00718.08
8.2.20.0000.00717.77
8.2.10.0030.00517.56
8.2.00.0070.00017.73
8.1.280.0070.00725.92
8.1.270.0070.00023.99
8.1.260.0150.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00320.74
8.1.230.0040.00720.89
8.1.220.0000.00817.79
8.1.210.0000.00818.82
8.1.200.0050.00517.35
8.1.190.0060.00317.53
8.1.180.0000.00818.10
8.1.170.0060.00318.75
8.1.160.0050.00318.92
8.1.150.0000.00818.65
8.1.140.0040.00417.50
8.1.130.0030.00517.73
8.1.120.0070.00017.48
8.1.110.0080.00017.43
8.1.100.0000.00817.50
8.1.90.0030.00517.40
8.1.80.0000.01017.50
8.1.70.0000.00717.35
8.1.60.0030.00617.60
8.1.50.0040.00417.41
8.1.40.0040.00417.41
8.1.30.0000.00817.60
8.1.20.0040.00417.66
8.1.10.0000.00817.54
8.1.00.0040.00417.50
8.0.300.0000.00819.90
8.0.290.0040.00416.88
8.0.280.0070.00018.45
8.0.270.0030.00317.29
8.0.260.0070.00018.55
8.0.250.0070.00016.93
8.0.240.0030.00716.98
8.0.230.0030.00316.89
8.0.220.0000.00616.96
8.0.210.0030.00316.99
8.0.200.0040.00417.04
8.0.190.0000.00717.01
8.0.180.0050.00316.96
8.0.170.0040.00816.99
8.0.160.0070.00016.95
8.0.150.0040.00416.84
8.0.140.0070.00316.80
8.0.130.0050.00013.36
8.0.120.0000.00716.89
8.0.110.0000.00816.93
8.0.100.0040.00416.82
8.0.90.0080.00016.97
8.0.80.0060.01316.87
8.0.70.0040.00416.75
8.0.60.0000.00716.75
8.0.50.0040.00416.83
8.0.30.0060.01216.94
8.0.20.0110.01117.14
8.0.10.0070.00017.09
8.0.00.0100.00716.75
7.4.330.0000.00514.74
7.4.320.0000.00616.48
7.4.300.0060.00016.60
7.4.290.0000.00716.43
7.4.280.0060.00316.41
7.4.270.0000.00816.45
7.4.260.0070.00013.25
7.4.250.0040.00416.40
7.4.240.0030.00316.41
7.4.230.0050.00216.48
7.4.220.0070.01116.56
7.4.210.0090.00716.54
7.4.200.0000.00716.63
7.4.190.0030.00316.66
7.4.160.0040.01216.59
7.4.150.0120.00717.07
7.4.140.0110.00817.18
7.4.130.0050.01216.49
7.4.120.0080.01016.55
7.4.110.0100.01016.52
7.4.100.0120.00916.57
7.4.90.0100.00716.55
7.4.80.0150.00918.80
7.4.70.0110.00816.45
7.4.60.0080.00916.57
7.4.50.0050.00016.50
7.4.40.0080.00622.26
7.4.30.0160.00016.64
7.4.00.0100.00715.11
7.3.330.0030.00313.19
7.3.320.0000.00513.35
7.3.310.0070.00016.43
7.3.300.0060.00016.26
7.3.290.0030.01616.37
7.3.280.0110.00616.39
7.3.270.0080.00917.07
7.3.260.0160.00818.24
7.3.250.0090.01516.45
7.3.240.0100.00716.54
7.3.230.0110.00716.48
7.3.210.0060.00916.25
7.3.200.0060.01016.64
7.3.190.0060.01216.33
7.3.180.0030.01516.58
7.3.170.0140.00916.61
7.3.160.0090.00916.49
7.3.120.0040.00914.90
7.3.10.0040.00816.53
7.3.00.0060.00516.70
7.2.330.0140.00316.53
7.2.320.0190.00616.63
7.2.310.0100.00716.69
7.2.300.0100.00616.67
7.2.290.0070.01016.77
7.2.130.0050.00716.83
7.2.120.0030.00816.86
7.2.110.0030.00816.83
7.2.100.0050.00716.92
7.2.90.0060.00416.97
7.2.80.0050.00517.06
7.2.70.0050.00716.93
7.2.60.0050.00916.72
7.2.50.0060.00516.77
7.2.40.0070.00716.81
7.2.30.0050.01116.94
7.2.20.0070.00716.84
7.2.10.0010.00916.83
7.2.00.0020.01017.73
7.1.250.0080.00415.81
7.1.240.0040.00715.93
7.1.230.0030.00315.85
7.1.220.0000.01415.56
7.1.210.0070.00715.62
7.1.200.0070.00915.77
7.1.190.0000.00715.71
7.1.180.0000.00915.70
7.1.170.0030.00715.45
7.1.160.0060.00915.95
7.1.150.0000.01215.79
7.1.140.0070.00715.88
7.1.130.0030.00915.94
7.1.120.0070.00015.76
7.1.110.0090.00315.90
7.1.100.0050.00416.96
7.1.90.0060.00315.76
7.1.80.0030.01215.69
7.1.70.0000.01116.50
7.1.60.0030.00917.48
7.1.50.0050.00816.39
7.1.40.0000.00915.88
7.1.30.0030.00715.63
7.1.20.0000.01415.79
7.1.10.0030.00715.48
7.1.00.0030.03519.03
7.0.330.0030.01015.45
7.0.320.0000.01315.15
7.0.310.0030.01015.06
7.0.300.0100.00015.29
7.0.290.0030.00715.36
7.0.280.0030.01015.29
7.0.270.0060.00615.29
7.0.260.0070.00315.30
7.0.250.0070.00715.35
7.0.240.0040.01115.38
7.0.230.0030.00615.04
7.0.220.0060.00315.44
7.0.210.0060.00315.57
7.0.200.0030.00716.05
7.0.190.0060.00315.29
7.0.180.0000.00715.43
7.0.170.0090.00015.36
7.0.160.0060.00615.57
7.0.150.0090.00315.34
7.0.140.0100.03218.69
7.0.130.0100.00615.38
7.0.120.0050.01818.68
7.0.110.0090.00015.40
7.0.100.0070.00715.53
7.0.90.0030.00715.32
7.0.80.0030.00615.24
7.0.70.0030.00615.47
7.0.60.0070.03417.53
7.0.50.0060.02516.71
7.0.40.0090.02516.85
7.0.30.0170.02516.74
7.0.20.0160.02116.72
7.0.10.0110.04016.88
7.0.00.0080.04616.67
5.6.380.0100.00013.98
5.6.370.0040.00814.50
5.6.360.0080.00314.34
5.6.350.0060.00614.47
5.6.340.0030.00614.51
5.6.330.0070.00714.80
5.6.320.0030.01014.05
5.6.310.0060.00614.59
5.6.300.0030.01014.71
5.6.290.0030.00914.70
5.6.280.0030.03817.73
5.6.270.0130.00314.40
5.6.260.0030.00814.68
5.6.250.0090.00614.20
5.6.240.0000.01214.40
5.6.230.0050.00314.62
5.6.220.0030.01314.35
5.6.210.0160.02817.32
5.6.200.0100.02216.28
5.6.190.0020.03817.40
5.6.180.0200.03917.41
5.6.170.0130.04717.44
5.6.160.0100.04317.38
5.6.150.0070.03916.24
5.6.140.0000.03816.35
5.6.130.0020.02716.43
5.6.120.0050.03317.61
5.6.110.0080.02517.73
5.6.100.0070.04317.79
5.6.90.0050.02517.76
5.6.80.0110.02517.28
5.6.70.0040.01114.47
5.6.60.0090.00314.41
5.6.50.0100.00314.16
5.6.40.0030.00614.33
5.6.30.0070.00714.33
5.6.20.0070.00314.24
5.6.10.0030.00914.55
5.6.00.0040.00814.02
5.5.380.0090.00011.25
5.5.370.0000.01011.04
5.5.360.0030.00711.05
5.5.350.0200.03715.89
5.5.340.0070.04014.53
5.5.330.0030.04615.72
5.5.320.0230.03515.81
5.5.310.0120.04615.59
5.5.300.0070.03314.61
5.5.290.0060.03814.59
5.5.280.0030.04415.89
5.5.270.0070.02715.86
5.5.260.0050.04515.96
5.5.250.0070.02215.94
5.5.240.0040.03815.72
5.5.230.0060.00311.01
5.5.220.0080.00011.13
5.5.210.0130.00010.98
5.5.200.0040.00811.29
5.5.190.0060.00611.25
5.5.180.0030.00310.98
5.5.170.0030.00711.27
5.5.160.0070.00011.05
5.5.150.0040.00711.15
5.5.140.0030.00611.20
5.5.130.0000.00711.19
5.5.120.0070.00010.99
5.5.110.0040.00910.97
5.5.100.0000.01210.99
5.5.90.0030.00610.96
5.5.80.0030.01010.99
5.5.70.0000.00711.29
5.5.60.0050.00011.09
5.5.50.0070.00011.24
5.5.40.0030.00610.66
5.5.30.0000.00711.21
5.5.20.0070.00411.25
5.5.10.0000.01011.28
5.5.00.0030.00711.04
5.4.450.0100.02515.34
5.4.440.0000.03015.23
5.4.430.0050.02715.20
5.4.420.0070.02015.27
5.4.410.0010.02115.25
5.4.400.0050.02514.95
5.4.390.0030.02515.14
5.4.380.0050.01814.94
5.4.370.0050.02314.90
5.4.360.0020.02215.13
5.4.350.0070.02314.88
5.4.340.0000.02415.03
5.4.330.0030.00311.01
5.4.320.0070.01715.01
5.4.310.0030.02014.95
5.4.300.0040.02115.10
5.4.290.0070.02214.94
5.4.280.0070.01815.03
5.4.270.0000.02415.07
5.4.260.0050.01814.89
5.4.250.0060.01814.91
5.4.240.0000.02315.14
5.4.230.0050.02115.07
5.4.220.0100.01514.89
5.4.210.0050.01814.89
5.4.200.0000.02514.97
5.4.190.0020.02214.86
5.4.180.0030.04214.85
5.4.170.0020.03014.97
5.4.160.0030.04015.08
5.4.150.0030.02415.05
5.4.140.0030.02213.81
5.4.130.0020.02513.78
5.4.120.0020.04213.67
5.4.110.0070.02713.76
5.4.100.0060.03613.79
5.4.90.0030.02213.65
5.4.80.0050.01813.71
5.4.70.0060.02313.56
5.4.60.0070.03713.84
5.4.50.0070.03113.65
5.4.40.0080.02813.93
5.4.30.0070.01813.71
5.4.20.0050.02613.73
5.4.10.0080.03513.80
5.4.00.0060.02613.30
5.3.290.0060.01812.57
5.3.280.0070.01712.60
5.3.270.0070.04012.62
5.3.260.0030.03612.49
5.3.250.0030.03612.54
5.3.240.0030.02212.47
5.3.230.0050.03712.51
5.3.220.0070.03312.49
5.3.210.0080.02612.48
5.3.200.0110.02312.55
5.3.190.0050.02112.52
5.3.180.0070.02012.62
5.3.170.0110.02012.61
5.3.160.0070.03812.49
5.3.150.0060.04412.58
5.3.140.0050.04012.59
5.3.130.0050.04312.57
5.3.120.0080.03012.55
5.3.110.0030.03712.36
5.3.100.0050.02212.24
5.3.90.0050.04312.32
5.3.80.0100.02312.12
5.3.70.0020.02412.16
5.3.60.0020.02012.26
5.3.50.0070.03912.25
5.3.40.0040.04112.21
5.3.30.0030.03212.17
5.3.20.0060.04112.17
5.3.10.0070.02512.01
5.3.00.0080.02312.00
5.2.170.0020.03410.28
5.2.160.0020.03710.41
5.2.150.0080.03110.40
5.2.140.0030.02510.39
5.2.130.0030.03210.33
5.2.120.0030.02810.36
5.2.110.0060.02610.26
5.2.100.0050.02810.23
5.2.90.0030.02410.40
5.2.80.0060.02710.30
5.2.70.0000.02510.11
5.2.60.0020.02010.21
5.2.50.0070.03210.26
5.2.40.0050.02010.16
5.2.30.0040.02910.11
5.2.20.0080.02510.29
5.2.10.0020.03010.12
5.2.00.0060.0309.98
5.1.60.0050.0289.22
5.1.50.0060.0249.38
5.1.40.0030.0249.28
5.1.30.0000.0299.50
5.1.20.0030.0329.46
5.1.10.0060.0289.46
5.1.00.0040.0179.18
5.0.50.0010.0268.16
5.0.40.0060.0218.09
5.0.30.0000.0378.06
5.0.20.0020.0158.06
5.0.10.0090.0188.06
5.0.00.0030.0358.06
4.4.90.0000.0138.06
4.4.80.0050.0188.06
4.4.70.0030.0108.06
4.4.60.0000.0238.06
4.4.50.0050.0178.06
4.4.40.0050.0178.06
4.4.30.0020.0208.06
4.4.20.0050.0108.06
4.4.10.0030.0098.06
4.4.00.0020.0328.06
4.3.110.0070.0138.06
4.3.100.0050.0178.06
4.3.90.0000.0118.06
4.3.80.0020.0278.06
4.3.70.0020.0158.06
4.3.60.0000.0158.06
4.3.50.0020.0128.06
4.3.40.0030.0278.06
4.3.30.0000.0228.06
4.3.20.0020.0158.06
4.3.10.0000.0168.06
4.3.00.0000.0138.06

preferences:
47.29 ms | 401 KiB | 5 Q