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.3.90.0040.00420.14
8.3.80.0090.00018.43
8.3.70.0110.00316.50
8.3.60.0110.00716.37
8.3.50.0130.00721.92
8.3.40.0130.00618.86
8.3.30.0070.00718.91
8.3.20.0040.00420.29
8.3.10.0120.00323.52
8.3.00.0000.01019.38
8.2.210.0040.00426.77
8.2.200.0060.00618.17
8.2.190.0150.00916.63
8.2.180.0060.00918.26
8.2.170.0090.00622.96
8.2.160.0070.00720.53
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0060.01226.16
8.2.120.0080.00022.21
8.2.110.0000.00921.98
8.2.100.0110.00017.84
8.2.90.0050.00319.26
8.2.80.0040.00417.97
8.2.70.0100.00017.63
8.2.60.0060.00318.05
8.2.50.0050.00318.07
8.2.40.0030.00618.22
8.2.30.0040.00417.93
8.2.20.0000.00817.62
8.2.10.0000.00718.06
8.2.00.0030.00617.71
8.1.290.0090.00018.88
8.1.280.0110.00325.92
8.1.270.0060.00323.83
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00723.79
8.1.230.0030.00818.82
8.1.220.0060.00317.74
8.1.210.0050.00318.77
8.1.200.0100.00017.35
8.1.190.0000.00717.50
8.1.180.0070.00018.10
8.1.170.0040.00418.55
8.1.160.0070.00021.93
8.1.150.0000.00818.50
8.1.140.0040.00417.42
8.1.130.0070.00017.72
8.1.120.0030.00517.43
8.1.110.0000.00717.25
8.1.100.0040.00417.34
8.1.90.0030.00517.34
8.1.80.0040.00417.29
8.1.70.0000.00617.31
8.1.60.0040.00417.57
8.1.50.0040.00417.48
8.1.40.0070.00017.49
8.1.30.0040.00417.61
8.1.20.0000.00817.61
8.1.10.0040.00417.51
8.1.00.0040.00417.48
8.0.300.0070.00018.77
8.0.290.0040.00417.05
8.0.280.0030.00318.48
8.0.270.0000.00717.23
8.0.260.0030.00316.88
8.0.250.0000.00716.97
8.0.240.0030.00716.90
8.0.230.0000.00716.91
8.0.220.0070.00016.88
8.0.210.0040.00416.79
8.0.200.0030.00316.84
8.0.190.0080.00016.75
8.0.180.0000.00716.83
8.0.170.0050.00316.89
8.0.160.0030.00516.88
8.0.150.0070.00016.80
8.0.140.0000.01016.69
8.0.130.0000.00513.34
8.0.120.0000.00816.85
8.0.110.0040.00416.82
8.0.100.0040.00416.75
8.0.90.0040.00316.76
8.0.80.0060.00916.81
8.0.70.0040.00416.85
8.0.60.0070.00016.63
8.0.50.0070.00016.73
8.0.30.0140.00416.97
8.0.20.0110.00717.40
8.0.10.0040.00416.98
8.0.00.0110.01016.84
7.4.330.0000.00515.02
7.4.320.0070.00016.35
7.4.300.0000.00616.50
7.4.290.0060.00316.57
7.4.280.0050.00516.49
7.4.270.0070.00016.64
7.4.260.0000.00716.60
7.4.250.0040.00416.47
7.4.240.0000.00716.47
7.4.230.0030.00316.69
7.4.220.0070.01116.48
7.4.210.0070.00916.65
7.4.200.0000.00716.35
7.4.190.0070.00016.66
7.4.160.0120.00616.34
7.4.150.0140.00317.40
7.4.140.0080.01217.86
7.4.130.0070.01016.42
7.4.120.0100.00816.67
7.4.110.0030.01316.40
7.4.100.0130.00416.30
7.4.90.0100.00716.32
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.330.0030.00313.23
7.3.320.0070.00013.23
7.3.310.0000.00716.23
7.3.300.0040.00416.21
7.3.290.0120.00616.23
7.3.280.0070.01016.20
7.3.270.0090.00917.40
7.3.260.0100.00716.21
7.3.250.0110.01216.29
7.3.240.0070.01516.46
7.3.230.0130.00316.39
7.3.210.0090.00916.55
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.330.0060.01216.71
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

preferences:
32.56 ms | 402 KiB | 5 Q