3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function run() { return call_user_func(array('Bar', 'getValue')); } private static function getValue() { return 'Foo'; } } class Bar extends Foo { public static function getValue() { return 'Bar'; } } $x = new Bar; echo $x->run();

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.0.0beta10.0090.01116.64
8.0.0alpha30.0150.00316.61
8.0.0alpha20.0090.00916.56
8.0.0alpha10.0060.01016.57
7.4.80.0030.02119.39
7.4.70.0030.01216.54
7.4.60.0080.01316.38
7.4.50.0060.00316.44
7.4.40.0060.01222.77
7.4.30.0060.01016.43
7.4.00.0090.00615.13
7.3.200.0070.01419.39
7.3.190.0170.00516.18
7.3.180.0080.01116.33
7.3.170.0120.00916.27
7.3.160.0110.00716.21
7.3.120.0090.00614.64
7.2.320.0100.01016.68
7.2.310.0060.01116.71
7.2.300.0100.01316.73
7.2.290.0040.01216.41
7.2.00.0030.00919.18
7.1.100.0060.00618.08
7.1.70.0000.00916.81
7.1.60.0030.01719.33
7.1.50.0100.01316.65
7.1.00.0100.07022.51
7.0.200.0000.00716.56
7.0.140.0100.06722.00
7.0.60.0000.07020.05
7.0.50.0030.05017.88
7.0.40.0130.05320.25
7.0.30.0130.04720.08
7.0.20.0330.04720.19
7.0.10.0100.08320.09
7.0.00.0030.04020.20
5.6.280.0000.07720.83
5.6.210.0030.08320.62
5.6.200.0070.08318.27
5.6.190.0030.06320.48
5.6.180.0230.06720.68
5.6.170.0270.03320.71
5.6.160.0070.05020.57
5.6.150.0170.06318.22
5.6.140.0070.08018.21
5.6.130.0070.08718.27
5.6.120.0100.05320.99
5.6.110.0100.05020.95
5.6.100.0070.08320.99
5.6.90.0100.03721.11
5.6.80.0000.08720.43
5.5.350.0030.04020.41
5.5.340.0170.03718.05
5.5.330.0070.04320.18
5.5.320.0270.07720.51
5.5.310.0230.08020.29
5.5.300.0000.07718.09
5.5.290.0070.04718.08
5.5.280.0100.08020.89
5.5.270.0070.05020.98
5.5.260.0030.04720.88
5.5.250.0100.08020.66
5.5.240.0100.03720.29
5.4.450.2430.03319.39
5.4.440.2130.04019.55
5.4.430.2200.03319.50
5.4.420.2030.03319.38
5.4.410.1870.04319.44
5.4.400.2300.05018.88
5.4.390.2200.03319.13
5.4.380.2130.04719.20
5.4.370.2230.02719.06
5.4.360.0000.04019.09
5.4.350.0030.03719.08
5.4.340.1070.05019.15
5.4.320.2100.03719.20
5.4.310.2100.03719.22
5.4.300.2530.04719.06
5.4.290.2170.04019.13
5.4.280.1870.03719.09
5.4.270.1970.03319.22
5.4.260.2200.03318.87
5.4.250.2170.03318.97
5.4.240.2200.04019.22
5.4.230.0730.03719.21
5.4.220.0070.03318.99
5.4.210.0030.04719.21
5.4.200.1400.03319.05
5.4.190.2030.04018.98
5.4.180.1900.04019.07
5.4.170.2130.04019.14
5.4.160.2130.04719.21
5.4.150.2030.03719.14
5.4.140.2300.04016.41
5.4.130.2370.04016.37
5.4.120.2200.03716.38
5.4.110.2300.03316.33
5.4.100.2200.03716.25
5.4.90.2370.04016.50
5.4.80.2400.02716.55
5.4.70.2130.03316.46
5.4.60.2170.03716.24
5.4.50.2070.03316.34
5.4.40.2270.04716.22
5.4.30.2430.04016.34
5.4.20.2170.03716.16
5.4.10.0700.05716.30
5.4.00.0070.03315.78
5.3.290.0270.04314.83
5.3.280.0030.04014.82
5.3.270.0000.05014.51
5.3.260.0370.04314.69
5.3.250.2570.04714.83
5.3.240.2330.03714.68
5.3.230.1900.04014.52
5.3.220.2700.04714.66
5.3.210.2600.04714.57
5.3.200.2570.04714.54
5.3.190.2370.04314.58
5.3.180.2530.04714.56
5.3.170.0800.03314.46
5.3.160.0100.07314.48
5.3.150.0000.04714.64
5.3.140.0930.03714.56
5.3.130.2370.03314.56
5.3.120.2570.04714.57
5.3.110.2400.04014.45
5.3.100.2170.04014.04
5.3.90.2370.04014.11
5.3.80.2370.03714.00
5.3.70.2600.04014.04
5.3.60.2330.04013.93
5.3.50.1400.03714.10
5.3.40.0030.04013.85
5.3.30.0030.04013.83
5.3.20.2170.04313.70
5.3.10.2400.03713.59
5.3.00.2370.04713.55
5.2.170.1930.04011.38
5.2.160.2030.03311.07
5.2.150.2030.03011.06
5.2.140.2000.03011.17
5.2.130.1770.03311.34
5.2.120.1770.02311.11
5.2.110.1700.03711.01
5.2.100.1730.02711.02
5.2.90.2130.02311.11
5.2.80.1830.02311.03
5.2.70.1870.03011.00
5.2.60.2070.03010.99
5.2.50.0030.06010.93
5.2.40.0030.03310.93
5.2.30.0030.04710.89
5.2.20.0070.05310.87
5.2.10.0030.06010.84
5.2.00.1530.03010.67
5.1.60.1630.02010.00
5.1.50.1400.0279.98
5.1.40.1430.0239.91
5.1.30.1400.03010.34
5.1.20.1430.02710.36
5.1.10.1370.02710.00
5.1.00.0000.05310.20
5.0.50.0030.0438.60
5.0.40.0070.0408.50
5.0.30.0000.0708.30
5.0.20.0030.0278.26
5.0.10.0000.0408.07
5.0.00.0200.0378.32
4.4.90.0700.0137.99
4.4.80.0870.0207.99
4.4.70.0830.0237.99
4.4.60.0770.0207.99
4.4.50.0700.0207.99
4.4.40.0700.0307.99
4.4.30.0700.0137.99
4.4.20.0670.0137.99
4.4.10.0730.0207.99
4.4.00.0970.0337.99
4.3.110.0830.0137.99
4.3.100.0870.0107.99
4.3.90.0830.0177.99
4.3.80.1000.0337.99
4.3.70.1100.0177.99
4.3.60.1130.0207.99
4.3.50.0530.0177.99
4.3.40.0000.0537.99
4.3.30.0000.0177.99
4.3.20.0000.0337.99
4.3.10.0000.0207.99
4.3.00.0030.0337.99