3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private function __call($name, $args) { echo $name; } private function foo() { echo 'ahoj'; } } class B extends A { public function bar() { echo $this->foo()."\n"; } } $a = new B; $a->bar(); call_user_func(array($a, 'foo')); $ref = new ReflectionMethod($a, '__call'); $ref->setAccessible(true); $ref->invoke($a, 'foo', array()); //$ref = new ReflectionClass($a); //var_dump($ref->getMethods());

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.0070.01518.55
8.3.50.0100.00621.20
8.3.40.0120.00318.79
8.3.30.0070.00720.34
8.3.20.0050.00320.36
8.3.10.0090.00021.86
8.3.00.0040.00422.44
8.2.180.0060.00918.39
8.2.170.0140.00022.96
8.2.160.0040.01120.53
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0060.00318.85
8.2.110.0060.00321.03
8.2.100.0040.00718.03
8.2.90.0080.00019.30
8.2.80.0000.00817.97
8.2.70.0030.00517.50
8.2.60.0080.00018.16
8.2.50.0040.00418.10
8.2.40.0040.00418.22
8.2.30.0000.00818.07
8.2.20.0060.00317.61
8.2.10.0040.00417.69
8.2.00.0040.00417.72
8.1.280.0120.00625.92
8.1.270.0000.00823.99
8.1.260.0000.00926.35
8.1.250.0060.00328.09
8.1.240.0070.00322.80
8.1.230.0000.01217.70
8.1.220.0030.00617.76
8.1.210.0050.00318.77
8.1.200.0030.00617.35
8.1.190.0030.00517.23
8.1.180.0000.00818.10
8.1.170.0050.00318.57
8.1.160.0040.00422.14
8.1.150.0070.00018.64
8.1.140.0030.00517.46
8.1.130.0040.00417.74
8.1.120.0040.00417.53
8.1.110.0000.00717.36
8.1.100.0000.00717.37
8.1.90.0040.00417.51
8.1.80.0000.00717.35
8.1.70.0000.00717.46
8.1.60.0000.00817.55
8.1.50.0080.00017.44
8.1.40.0000.00717.45
8.1.30.0000.00817.66
8.1.20.0000.00917.63
8.1.10.0070.00017.63
8.1.00.0060.00317.35
8.0.300.0030.00718.77
8.0.290.0000.00716.88
8.0.280.0030.00518.36
8.0.270.0040.00417.11
8.0.260.0060.00016.76
8.0.250.0030.00316.94
8.0.240.0040.00417.04
8.0.230.0040.00416.95
8.0.220.0030.00317.00
8.0.210.0030.00316.96
8.0.200.0070.00016.91
8.0.190.0040.00416.99
8.0.180.0000.00717.03
8.0.170.0060.00316.93
8.0.160.0000.00716.94
8.0.150.0000.00716.74
8.0.140.0070.00016.83
8.0.130.0050.00013.38
8.0.120.0000.00716.82
8.0.110.0040.00416.98
8.0.100.0030.00516.83
8.0.90.0040.00417.07
8.0.80.0130.00317.01
8.0.70.0030.00516.85
8.0.60.0050.00316.91
8.0.50.0040.00416.85
8.0.30.0090.00917.07
8.0.20.0050.01217.40
8.0.10.0000.00817.12
8.0.00.0090.01216.78
7.4.330.0000.00515.00
7.4.320.0030.00316.52
7.4.300.0060.00016.56
7.4.290.0030.00316.53
7.4.280.0040.00416.53
7.4.270.0040.00416.40
7.4.260.0000.00816.36
7.4.250.0040.00416.33
7.4.240.0060.00216.46
7.4.230.0040.00416.50
7.4.220.0090.01516.48
7.4.210.0110.00616.53
7.4.200.0000.00716.54
7.4.190.0040.00416.51
7.4.160.0130.00616.50
7.4.150.0070.01017.40
7.4.140.0130.00617.86
7.4.130.0130.00416.43
7.4.120.0100.00716.64
7.4.110.0130.00416.49
7.4.100.0040.01516.73
7.4.90.0100.00716.37
7.4.80.0070.01519.39
7.4.70.0130.00616.37
7.4.60.0060.01116.58
7.4.50.0000.00916.54
7.4.40.0040.00822.77
7.4.30.0040.01216.49
7.4.00.0030.00715.21
7.3.330.0000.00613.38
7.3.320.0050.00013.21
7.3.310.0000.00816.39
7.3.300.0020.00516.37
7.3.290.0070.01116.32
7.3.280.0110.00616.34
7.3.270.0130.00317.40
7.3.260.0100.00716.36
7.3.250.0100.00716.35
7.3.240.0130.00316.57
7.3.230.0040.01416.48
7.3.210.0090.00916.45
7.3.200.0100.00719.39
7.3.190.0090.00916.36
7.3.180.0090.01216.66
7.3.170.0110.00416.57
7.3.160.0090.00916.52
7.3.120.0040.01215.00
7.2.330.0060.00916.42
7.2.320.0080.01516.54
7.2.310.0170.00016.55
7.2.300.0040.01116.52
7.2.290.0090.01416.78
7.2.80.0120.00016.61
7.2.60.0070.00716.87
7.2.50.0100.00316.95
7.1.200.0040.01115.63
7.1.70.0040.00417.11
7.1.60.0070.01419.29
7.1.50.0060.01816.98
7.1.00.0030.05322.40
7.0.200.0150.00614.89
7.0.140.0100.07022.16
7.0.60.0270.06319.96
7.0.50.0030.04717.82
7.0.40.0100.04020.06
7.0.30.0230.08320.04
7.0.20.0300.09020.24
7.0.10.0070.09020.12
7.0.00.0200.07720.16
5.6.280.0070.06721.02
5.6.210.0130.07320.62
5.6.200.0030.06318.20
5.6.190.0100.07720.63
5.6.180.0230.08020.50
5.6.170.0200.04720.56
5.6.160.0100.03720.52
5.6.150.0030.08718.27
5.6.140.0000.09018.11
5.6.130.0070.07318.28
5.6.120.0030.07321.04
5.6.110.0030.09021.05
5.6.100.0230.06320.99
5.6.90.0270.06721.05
5.6.80.0000.06020.44
5.5.350.0030.07020.42
5.5.340.0070.07718.09
5.5.330.0130.04320.32
5.5.320.3570.04320.42
5.5.310.0270.07720.32
5.5.300.0070.05018.00
5.5.290.0100.07017.93
5.5.280.0030.08020.91
5.5.270.0000.06020.76
5.5.260.0170.07020.80
5.5.250.0000.08320.47
5.5.240.0070.07320.36
5.4.450.1000.04319.55
5.4.440.0570.06719.44
5.4.430.0700.06019.55
5.4.420.0000.06319.52
5.4.410.0100.05019.08
5.4.400.0200.06718.81
5.4.390.0030.06018.48
5.4.380.0100.05318.79
5.4.370.0230.04318.76
5.4.360.0130.05018.59
5.4.350.0060.03812.02
5.4.340.0060.04512.02
5.4.320.0030.03712.51
5.4.310.0060.04412.50
5.4.300.0060.03812.52
5.4.290.0050.04012.51
5.4.280.0070.04712.40
5.4.270.0050.04512.40
5.4.260.0070.04312.40
5.4.250.0100.05018.92
5.4.240.0170.04318.95
5.4.230.0030.05718.80
5.4.220.0100.05018.76
5.4.210.0000.06318.99
5.4.200.0130.04719.07
5.4.190.0200.06718.97
5.4.180.0130.04718.95
5.4.170.0100.06318.76
5.4.160.0130.05718.92
5.4.150.0070.05318.89
5.4.140.0030.05316.45
5.4.130.0130.04016.61
5.4.120.0100.04316.64
5.4.110.0070.05016.41
5.4.100.0070.05016.51
5.4.90.0030.04716.64
5.4.80.0100.06716.43
5.4.70.0100.04316.52
5.4.60.0000.05316.48
5.4.50.0170.06016.41
5.4.40.0100.07016.49
5.4.30.0030.05016.47
5.4.20.0100.04716.35
5.4.10.0030.05316.34
5.4.00.0030.05016.00
5.3.290.0070.04412.80
5.3.280.0170.05314.59
5.3.270.0100.04714.75
5.3.260.0030.05714.70
5.3.250.0000.05714.70
5.3.240.0000.05714.79
5.3.230.0100.04714.60
5.3.220.0170.06714.66
5.3.210.0170.04014.59
5.3.200.0200.05314.68
5.3.190.0100.05014.65
5.3.180.0030.05014.65
5.3.170.0030.05314.56
5.3.160.0070.04714.67
5.3.150.0030.05314.68
5.3.140.0030.05014.65
5.3.130.0070.05314.55
5.3.120.0030.05314.56
5.3.110.0030.05314.64
5.3.100.0100.05714.21
5.3.90.0100.04713.99
5.3.80.0100.04314.03
5.3.70.0030.05314.21
5.3.60.0100.04713.99
5.3.50.0100.05014.04
5.3.40.0070.05313.97
5.3.30.0170.05714.00
5.3.20.0100.04713.61
5.3.10.0030.05313.55
5.3.00.0070.05013.63
5.2.170.0000.04711.24
5.2.160.0100.05011.11
5.2.150.0100.04311.14
5.2.140.0070.04711.23
5.2.130.0100.03711.06
5.2.120.0100.03711.11
5.2.110.0030.04011.18
5.2.100.0130.05011.17
5.2.90.0030.04011.09
5.2.80.0000.06311.27
5.2.70.0070.04311.08
5.2.60.0030.05711.04
5.2.50.0030.04311.01
5.2.40.0070.03711.22
5.2.30.0070.04011.06
5.2.20.0030.04011.13
5.2.10.0030.04011.04
5.2.00.0030.04310.73
5.1.60.0030.03310.01
5.1.50.0070.0309.96
5.1.40.0000.04710.05
5.1.30.0030.03710.50
5.1.20.0070.03310.37
5.1.10.0000.04710.12
5.1.00.0130.0309.86
5.0.50.0070.0238.56
5.0.40.0000.0278.36
5.0.30.0070.0378.15
5.0.20.0070.0338.26
5.0.10.0000.0308.41
5.0.00.0030.0408.23
4.4.90.0070.0177.42
4.4.80.0030.0207.42
4.4.70.0030.0207.42
4.4.60.0000.0237.42
4.4.50.0030.0207.42
4.4.40.0030.0307.42
4.4.30.0030.0207.42
4.4.20.0070.0177.42
4.4.10.0100.0137.42
4.4.00.0030.0307.42
4.3.110.0130.0207.42
4.3.100.0000.0237.39
4.3.90.0000.0207.38
4.3.80.0070.0277.36
4.3.70.0000.0207.36
4.3.60.0000.0237.36
4.3.50.0000.0207.36
4.3.40.0030.0307.36
4.3.30.0030.0207.36
4.3.20.0000.0237.36
4.3.10.0030.0277.36
4.3.00.0030.01314.51

preferences:
54.37 ms | 401 KiB | 5 Q