3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { const NAME = 'A'; public static function test() { $args = func_get_args( 'more', 'args'); echo static::NAME, " ".join(',', $args)." \n"; } } class B extends A { const NAME = 'B'; public static function test() { echo self::NAME, "\n"; forward_static_call(array('A', 'test')); forward_static_call( 'test', 'other', 'args'); } } B::test(); function test() { $args = func_get_args(); echo "C ".join(',', $args)." \n"; } ?>

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.40.0130.00618.87
8.3.30.0090.00618.58
8.3.20.0080.00018.95
8.3.10.0030.00618.78
8.3.00.0060.00319.50
8.2.170.0120.00622.96
8.2.160.0070.01020.66
8.2.150.0080.00024.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0070.00020.79
8.2.110.0000.00920.47
8.2.100.0070.00717.84
8.2.90.0000.00917.88
8.2.80.0080.00018.67
8.2.70.0000.00817.75
8.2.60.0000.00917.93
8.2.50.0080.00018.07
8.2.40.0040.00420.00
8.2.30.0060.00317.61
8.2.20.0040.00717.62
8.2.10.0070.00017.62
8.2.00.0040.00417.76
8.1.270.0040.00423.99
8.1.260.0050.00326.35
8.1.250.0000.00728.09
8.1.240.0090.00022.02
8.1.230.0080.00417.64
8.1.220.0090.00017.74
8.1.210.0000.00818.77
8.1.200.0040.00417.23
8.1.190.0000.00817.10
8.1.180.0000.00818.10
8.1.170.0040.00418.75
8.1.160.0000.00918.87
8.1.150.0070.00018.44
8.1.140.0060.00317.38
8.1.130.0070.00017.69
8.1.120.0050.00217.37
8.1.110.0040.00417.33
8.1.100.0030.00717.39
8.1.90.0040.00417.34
8.1.80.0000.00817.32
8.1.70.0070.00017.38
8.1.60.0040.00417.57
8.1.50.0070.00017.42
8.1.40.0000.00917.29
8.1.30.0030.00617.64
8.1.20.0000.00917.50
8.1.10.0040.00417.45
8.1.00.0000.00817.34
8.0.300.0000.00818.77
8.0.290.0000.00716.75
8.0.280.0030.00318.64
8.0.270.0030.00317.25
8.0.260.0000.00616.80
8.0.250.0060.00316.89
8.0.240.0050.00217.00
8.0.230.0040.00416.83
8.0.220.0000.00716.80
8.0.210.0040.00416.83
8.0.200.0030.00716.85
8.0.190.0040.00416.92
8.0.180.0100.00016.91
8.0.170.0060.00316.86
8.0.160.0080.00016.82
8.0.150.0040.00416.87
8.0.140.0040.00416.88
8.0.130.0000.00613.42
8.0.120.0050.00516.77
8.0.110.0020.00516.90
8.0.100.0040.00416.87
8.0.90.0070.00316.92
8.0.80.0100.01016.91
8.0.70.0000.00716.74
8.0.60.0000.00816.74
8.0.50.0080.00016.87
8.0.30.0150.00317.27
8.0.20.0120.00817.20
8.0.10.0000.00817.07
8.0.00.0060.01316.79
7.4.330.0020.00212.92
7.4.320.0030.00316.51
7.4.300.0030.00316.49
7.4.290.0070.00016.55
7.4.280.0080.00016.45
7.4.270.0000.00716.59
7.4.260.0000.00613.27
7.4.250.0030.00516.48
7.4.240.0000.00816.49
7.4.230.0040.00416.66
7.4.220.0160.01016.50
7.4.210.0090.00616.45
7.4.200.0040.00416.55
7.4.190.0040.00416.54
7.4.160.0040.01216.45
7.4.150.0170.00016.61
7.4.140.0120.00616.45
7.4.130.0060.01016.58
7.4.120.0120.00916.49
7.4.110.0200.00016.46
7.4.100.0140.00416.48
7.4.90.0130.01016.53
7.4.80.0100.01419.39
7.4.70.0040.01216.57
7.4.60.0060.00916.38
7.4.50.0030.00316.20
7.4.40.0110.00716.40
7.4.30.0030.01416.58
7.4.00.0090.00914.91
7.3.330.0000.00613.09
7.3.320.0040.00413.28
7.3.310.0070.00016.26
7.3.300.0030.00316.19
7.3.290.0100.00516.28
7.3.280.0070.00916.29
7.3.270.0070.01016.47
7.3.260.0210.00316.17
7.3.250.0130.00816.29
7.3.240.0090.00916.54
7.3.230.0000.01616.50
7.3.210.0070.01016.57
7.3.200.0130.00316.21
7.3.190.0090.00616.58
7.3.180.0060.00916.48
7.3.170.0090.00616.52
7.3.160.0070.01016.39
7.3.120.0050.00514.74
7.2.330.0030.01416.36
7.2.320.0060.01216.76
7.2.310.0120.00816.77
7.2.300.0130.00316.48
7.2.290.0070.01016.88
7.2.60.0030.01016.95
7.2.00.0070.00719.51
7.1.200.0060.00615.72
7.1.100.0060.00318.10
7.1.70.0000.00717.20
7.1.60.0100.01419.30
7.1.50.0100.01016.88
7.1.00.0070.07022.47
7.0.200.0030.00616.70
7.0.140.0070.06722.16
7.0.120.0030.07322.13
7.0.60.0230.07019.85
7.0.50.0070.05017.83
7.0.40.0030.04720.11
7.0.30.0030.04319.89
7.0.20.0170.07719.86
7.0.10.0100.06019.77
7.0.00.0100.05019.89
5.6.280.0070.07021.07
5.6.210.0170.06720.63
5.6.200.0170.03718.20
5.6.190.0130.04020.57
5.6.180.0030.04720.47
5.6.170.0130.05720.42
5.6.160.0200.07020.62
5.6.150.0100.04020.34
5.6.140.0130.08320.28
5.6.130.0100.05320.44
5.6.120.0030.04320.17
5.6.110.0070.04020.48
5.6.100.0070.05020.16
5.6.90.0100.04720.21
5.6.80.0200.05319.79
5.6.70.0030.05719.69
5.6.60.0100.06019.73
5.6.50.0170.07019.58
5.6.40.0070.07719.77
5.6.30.0130.07319.73
5.6.20.0100.03719.69
5.6.10.0030.04019.53
5.6.00.0070.06319.84
5.5.350.0300.07720.45
5.5.340.0100.04017.95
5.5.330.0070.08720.47
5.5.320.0170.07720.54
5.5.310.0030.04720.35
5.5.300.0070.09019.99
5.5.290.0130.06319.97
5.5.280.0100.05020.30
5.5.270.0000.06020.16
5.5.260.0000.09320.29
5.5.250.0100.07720.01
5.5.240.0070.04719.59
5.5.230.0100.08019.51
5.5.220.0030.06719.37
5.5.210.0100.07719.52
5.5.200.0100.08019.39
5.5.190.0000.04319.52
5.5.180.0070.04019.36
5.5.160.0000.06319.55
5.5.150.0070.04319.64
5.5.140.0100.08019.34
5.5.130.0030.04319.54
5.5.120.0170.06719.67
5.5.110.0170.07319.49
5.5.100.0000.05019.57
5.5.90.0070.05719.48
5.5.80.0070.07719.28
5.5.70.0070.06719.45
5.5.60.0200.05019.56
5.5.50.0100.04719.54
5.5.40.0070.06719.62
5.5.30.0070.08019.38
5.5.20.0170.04719.50
5.5.10.0170.07019.43
5.5.00.0100.06719.46
5.4.450.0070.04719.31
5.4.440.0030.08019.18
5.4.430.0170.07319.48
5.4.420.0070.07319.17
5.4.410.0130.07319.38
5.4.400.0170.05319.15
5.4.390.0000.08319.20
5.4.380.0070.07319.25
5.4.370.0100.05019.20
5.4.360.0030.05018.85
5.4.350.0170.06319.24
5.4.340.0070.05018.97
5.4.320.0030.04319.15
5.4.310.0070.04719.15
5.4.300.0070.03319.00
5.4.290.0070.03319.19
5.4.280.0070.03719.19
5.4.270.0100.06318.87
5.4.260.0070.07018.92
5.4.250.0130.06719.20
5.4.240.0100.07319.14
5.4.230.0030.05719.17
5.4.220.0170.06719.14
5.4.210.0070.07018.92
5.4.200.0100.07319.24
5.4.190.0070.07019.13
5.4.180.0000.04319.14
5.4.170.0030.05318.84
5.4.160.0030.04719.11
5.4.150.0000.04319.12
5.4.140.0070.06716.40
5.4.130.0100.07016.43
5.4.120.0070.04316.59
5.4.110.0130.07016.50
5.4.100.0070.07316.38
5.4.90.0070.04016.47
5.4.80.0100.04016.46
5.4.70.0100.05716.37
5.4.60.0030.04716.36
5.4.50.0100.05716.27
5.4.40.0100.04016.40
5.4.30.0170.06716.30
5.4.20.0030.07316.38
5.4.10.0100.07316.40
5.4.00.0070.07015.82
5.3.290.0000.04014.68
5.3.280.0070.04314.65
5.3.270.0000.06014.62
5.3.260.0070.07714.68
5.3.250.0100.07714.62
5.3.240.0100.07314.68
5.3.230.0030.05014.66
5.3.220.0100.07014.72
5.3.210.0070.06314.59
5.3.200.0000.04714.61
5.3.190.0030.03714.58
5.3.180.0000.04314.59
5.3.170.0100.04014.59
5.3.160.0070.06314.57
5.3.150.0030.05314.57
5.3.140.0070.05714.62
5.3.130.0130.04714.58
5.3.120.0070.04714.71
5.3.110.0030.08314.62
5.3.100.0030.08314.20
5.3.90.0030.05014.06
5.3.80.0130.07014.03
5.3.70.0030.07713.99
5.3.60.0030.05713.98
5.3.50.0070.03713.88
5.3.40.0070.04314.03
5.3.30.0100.04313.95
5.3.20.0070.03713.78
5.3.10.0000.04013.63
5.3.00.0100.04013.70
5.2.170.0030.03011.14
5.2.160.0000.03311.18
5.2.150.0030.03311.15
5.2.140.0070.04311.20
5.2.130.0000.03311.02
5.2.120.0030.03011.14
5.2.110.0000.03711.09
5.2.100.0000.06011.17
5.2.90.0100.04711.10
5.2.80.0000.03711.26
5.2.70.0030.04311.27
5.2.60.0030.03711.21
5.2.50.0030.03310.94
5.2.40.0030.05310.89
5.2.30.0100.06011.05
5.2.20.0070.06011.11
5.2.10.0070.06010.90
5.2.00.0070.03010.77
5.1.60.0030.0279.97
5.1.50.0070.0539.99
5.1.40.0030.0409.95
5.1.30.0070.03710.30
5.1.20.0000.05710.27
5.1.10.0170.0509.99
5.1.00.0070.02010.07
5.0.50.0030.0208.70
5.0.40.0030.0338.32
5.0.30.0030.0578.26
5.0.20.0100.0378.25
5.0.10.0000.0408.24
5.0.00.0030.0708.32
4.4.90.0000.0237.43
4.4.80.0000.0207.43
4.4.70.0070.0337.43
4.4.60.0030.0307.43
4.4.50.0030.0377.43
4.4.40.0030.0277.43
4.4.30.0000.0237.43
4.4.20.0030.0277.43
4.4.10.0030.0237.43
4.4.00.0000.0477.43
4.3.110.0000.0407.43
4.3.100.0030.0277.43
4.3.90.0000.0437.43
4.3.80.0030.0237.43
4.3.70.0030.0337.43
4.3.60.0000.0177.43
4.3.50.0070.0307.43
4.3.40.0000.0477.43
4.3.30.0030.0337.43
4.3.20.0070.0337.43
4.3.10.0030.0307.43
4.3.00.0000.0377.43

preferences:
39.53 ms | 400 KiB | 5 Q