3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { const NAME = 'A'; public static function test() { $args = func_get_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'), 'more', 'args'); 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.0180.00418.75
8.3.30.0000.01418.84
8.3.20.0050.00318.77
8.3.10.0050.00321.05
8.3.00.0040.00421.87
8.2.170.0150.00022.96
8.2.160.0070.00720.34
8.2.150.0050.00224.18
8.2.140.0090.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00019.77
8.2.110.0090.00020.39
8.2.100.0090.00317.78
8.2.90.0000.00819.07
8.2.80.0030.00517.97
8.2.70.0000.00917.50
8.2.60.0000.00817.64
8.2.50.0060.00618.07
8.2.40.0040.00418.09
8.2.30.0070.00019.36
8.2.20.0040.00417.74
8.2.10.0070.00017.69
8.2.00.0020.00517.70
8.1.270.0050.00223.99
8.1.260.0110.00426.35
8.1.250.0060.00328.09
8.1.240.0040.00422.50
8.1.230.0070.00420.88
8.1.220.0080.00018.77
8.1.210.0060.00318.90
8.1.200.0030.00617.13
8.1.190.0050.00319.42
8.1.180.0040.00418.10
8.1.170.0090.00018.46
8.1.160.0040.00418.95
8.1.150.0080.00018.55
8.1.140.0040.00417.44
8.1.130.0040.00417.82
8.1.120.0000.00917.48
8.1.110.0040.00417.46
8.1.100.0020.00517.45
8.1.90.0070.00017.49
8.1.80.0040.00417.32
8.1.70.0000.00717.40
8.1.60.0030.00617.57
8.1.50.0000.00817.42
8.1.40.0050.00317.53
8.1.30.0000.00817.47
8.1.20.0040.00417.56
8.1.10.0080.00017.43
8.1.00.0030.00517.52
8.0.300.0050.00919.84
8.0.290.0040.00417.15
8.0.280.0030.00318.38
8.0.270.0000.00717.24
8.0.260.0040.00416.73
8.0.250.0000.00716.97
8.0.240.0060.00316.84
8.0.230.0070.00016.93
8.0.220.0040.00416.78
8.0.210.0070.00016.77
8.0.200.0060.00016.96
8.0.190.0020.00516.91
8.0.180.0040.00416.94
8.0.170.0000.00916.94
8.0.160.0000.00716.90
8.0.150.0000.00716.84
8.0.140.0000.00716.75
8.0.130.0060.00013.27
8.0.120.0070.00016.83
8.0.110.0000.00916.86
8.0.100.0040.00416.75
8.0.90.0000.00716.87
8.0.80.0110.00316.93
8.0.70.0030.00516.78
8.0.60.0040.00416.75
8.0.50.0050.00316.84
8.0.30.0150.00417.16
8.0.20.0060.01217.40
8.0.10.0000.00716.91
8.0.00.0190.00916.51
7.4.330.0000.00514.86
7.4.320.0060.00016.61
7.4.300.0060.00016.50
7.4.290.0070.00016.47
7.4.280.0040.00416.47
7.4.270.0030.00316.44
7.4.260.0000.00613.26
7.4.250.0040.00416.55
7.4.240.0070.00016.61
7.4.230.0000.00716.66
7.4.220.0120.00616.41
7.4.210.0100.00816.56
7.4.200.0000.00716.32
7.4.190.0030.00616.36
7.4.160.0040.01216.57
7.4.150.0080.00817.40
7.4.140.0120.00717.86
7.4.130.0060.01116.56
7.4.120.0080.01016.55
7.4.110.0110.00716.56
7.4.100.0160.00316.64
7.4.90.0110.02916.39
7.4.80.0080.00819.39
7.4.70.0060.01016.47
7.4.60.0070.01016.44
7.4.50.0060.00316.71
7.4.40.0030.01322.52
7.4.30.0150.00916.55
7.4.00.0070.01015.21
7.3.330.0000.00513.13
7.3.320.0000.00513.16
7.3.310.0030.00316.33
7.3.300.0030.00316.25
7.3.290.0090.00616.26
7.3.280.0090.00716.27
7.3.270.0120.00417.40
7.3.260.0110.00718.24
7.3.250.0090.00916.36
7.3.240.0090.00616.24
7.3.230.0130.01016.39
7.3.210.0150.00316.28
7.3.200.0130.01019.39
7.3.190.0100.00716.61
7.3.180.0100.01016.21
7.3.170.0090.01316.61
7.3.160.0090.00616.49
7.3.120.0060.00914.82
7.3.10.0040.00716.34
7.3.00.0030.01016.63
7.2.330.0040.01516.73
7.2.320.0100.01316.38
7.2.310.0100.01316.58
7.2.300.0060.01116.61
7.2.290.0100.01016.80
7.2.130.0000.01416.95
7.2.120.0030.00616.44
7.2.110.0060.00616.99
7.2.100.0060.00616.88
7.2.90.0040.00817.00
7.2.80.0050.00816.71
7.2.70.0000.01317.07
7.2.60.0050.00516.85
7.2.50.0030.01016.94
7.2.40.0110.00317.00
7.2.30.0080.00316.89
7.2.20.0000.01116.86
7.2.10.0030.00716.84
7.2.00.0040.00818.07
7.1.250.0060.00615.79
7.1.200.0040.00715.86
7.1.100.0030.00918.26
7.1.70.0040.00417.03
7.1.60.0100.01319.40
7.1.50.0090.01516.82
7.1.00.0070.07022.54
7.0.200.0000.00816.57
7.0.140.0100.06722.01
7.0.60.0030.06019.94
7.0.50.0000.09017.87
7.0.40.0070.04720.27
7.0.30.0170.04719.89
7.0.20.0300.08019.97
7.0.10.0130.08019.94
7.0.00.0030.04019.99
5.6.210.0030.08720.48
5.6.200.0100.04018.18
5.6.190.0100.05020.72
5.6.180.0170.04320.61
5.6.170.0300.03720.57
5.6.160.0030.08320.54
5.6.150.0000.04018.18
5.6.140.0030.04018.14
5.6.130.0100.08018.16
5.6.120.0030.05720.91
5.6.110.0070.04020.97
5.6.100.0100.05720.89
5.6.90.0030.04020.89
5.6.80.0100.07720.45
5.5.350.0070.04020.48
5.5.340.0070.04317.96
5.5.330.0170.07020.43
5.5.320.0230.07320.35
5.5.310.0300.04020.28
5.5.300.0000.07018.01
5.5.290.0000.05717.97
5.5.280.0070.07020.69
5.5.270.0030.04020.89
5.5.260.0030.08720.80
5.5.250.0000.04320.61
5.5.240.0130.03020.34
5.4.450.3330.04019.27
5.4.440.3830.03719.57
5.4.430.4100.03319.52
5.4.420.4000.03319.54
5.4.410.3670.04019.35
5.4.400.3970.03319.09
5.4.390.3970.03719.16
5.4.380.3930.04019.20
5.4.370.3870.04018.84
5.4.360.3670.03718.98
5.4.350.3170.03318.98
5.4.340.3200.03319.08
5.4.320.3070.03719.08
5.4.310.3770.04019.22
5.4.300.4030.03718.99
5.4.290.4100.03319.16
5.4.280.3970.03318.99
5.4.270.3770.04319.22
5.4.260.3330.02718.85
5.4.250.3500.04019.16
5.4.240.3170.03719.08
5.4.230.3330.04019.06
5.4.220.3470.05019.19
5.4.210.3430.03318.84
5.4.200.3430.03719.13
5.4.190.4070.04019.05
5.4.180.3370.03719.05
5.4.170.2800.03719.25
5.4.160.3170.04019.14
5.4.150.3530.04018.98
5.4.140.3300.03716.72
5.4.130.3070.03316.43
5.4.120.3500.04016.40
5.4.110.4700.04716.31
5.4.100.3930.04016.48
5.4.90.4000.03316.61
5.4.80.3900.02716.59
5.4.70.4000.03316.30
5.4.60.3930.03716.54
5.4.50.3830.03316.43
5.4.40.4000.03716.24
5.4.30.4100.03016.51
5.4.20.3830.04016.55
5.4.10.3970.03316.24
5.4.00.4870.04015.92
5.3.290.3400.03714.89
5.3.280.4030.03714.65
5.3.270.3630.03714.68
5.3.260.3870.04014.84
5.3.250.4130.03014.60
5.3.240.4000.03014.52
5.3.230.4070.03714.72
5.3.220.3400.03714.50
5.3.210.3430.03714.75
5.3.200.3470.03714.55
5.3.190.3070.04014.47
5.3.180.3270.03314.75
5.3.170.3530.03314.62
5.3.160.3800.03714.49
5.3.150.4100.02714.54
5.3.140.3970.03714.68
5.3.130.3570.04314.60
5.3.120.4100.03314.57
5.3.110.3930.03714.57
5.3.100.3130.04014.12
5.3.90.3370.03714.19
5.3.80.3330.03713.93
5.3.70.3330.03713.94
5.3.60.3370.03713.92
5.3.50.3300.03314.18
5.3.40.4130.03714.01
5.3.30.3400.03714.00
5.3.20.3830.04013.82
5.3.10.3930.04013.59
5.3.00.3970.03013.74
5.2.170.3400.03311.12
5.2.160.3070.03011.15
5.2.150.3100.02711.26
5.2.140.3030.03011.07
5.2.130.3000.04011.18
5.2.120.2870.02711.19
5.2.110.2800.02711.16
5.2.100.2570.03011.11
5.2.90.2970.03311.00
5.2.80.2930.02711.02
5.2.70.2530.03311.02
5.2.60.2770.02710.97
5.2.50.2900.02711.11
5.2.40.2100.03311.22
5.2.30.1770.03311.03
5.2.20.2730.03011.12
5.2.10.2430.02711.02
5.2.00.2870.03010.63
5.1.60.2830.01710.05
5.1.50.2470.0209.92
5.1.40.2270.0209.90
5.1.30.1730.02710.42
5.1.20.1870.03010.43
5.1.10.2070.0309.95
5.1.00.2070.0279.97
5.0.50.0870.0178.53
5.0.40.0830.0208.54
5.0.30.0900.0278.34
5.0.20.0870.0138.28
5.0.10.0930.0278.22
5.0.00.1330.0378.25
4.4.90.1230.0205.77
4.4.80.1030.0175.81
4.4.70.1030.0175.80
4.4.60.1030.0135.80
4.4.50.1100.0175.89
4.4.40.1070.0235.85
4.4.30.0800.0135.77
4.4.20.0830.0175.90
4.4.10.0800.0175.95
4.4.00.0830.0205.89
4.3.110.0630.0105.79
4.3.100.0600.0135.76
4.3.90.0770.0135.73
4.3.80.0600.0205.82
4.3.70.0730.0105.83
4.3.60.1070.0135.82
4.3.50.1030.0135.79
4.3.40.0770.0235.74
4.3.30.0500.0175.41
4.3.20.0230.0175.41
4.3.10.0530.0175.41
4.3.00.0500.0175.41

preferences:
54.48 ms | 400 KiB | 5 Q