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('foo'); 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.60.0060.01218.27
8.3.50.0100.00822.05
8.3.40.0140.00718.67
8.3.30.0080.00819.14
8.3.20.0000.00720.14
8.3.10.0000.00823.66
8.3.00.0060.00319.01
8.2.180.0160.00616.75
8.2.170.0130.01022.96
8.2.160.0070.00722.26
8.2.150.0080.00024.18
8.2.140.0110.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00320.81
8.2.110.0030.00621.11
8.2.100.0080.00417.84
8.2.90.0050.00318.20
8.2.80.0040.00418.03
8.2.70.0030.00617.50
8.2.60.0050.00317.63
8.2.50.0040.00417.55
8.2.40.0040.00417.62
8.2.30.0050.00217.75
8.2.20.0030.00517.55
8.2.10.0040.00417.98
8.2.00.0070.00017.66
8.1.280.0090.00625.92
8.1.270.0000.00818.91
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0000.01122.30
8.1.230.0000.01120.98
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0080.00017.36
8.1.180.0080.00018.10
8.1.170.0040.00417.62
8.1.160.0000.00718.89
8.1.150.0050.00218.80
8.1.140.0050.00318.87
8.1.130.0070.00017.83
8.1.120.0040.00417.45
8.1.110.0040.00417.45
8.1.100.0070.00017.40
8.1.90.0000.00817.43
8.1.80.0000.00717.38
8.1.70.0000.00717.51
8.1.60.0030.00517.48
8.1.50.0000.00817.55
8.1.40.0000.00717.57
8.1.30.0050.00317.59
8.1.20.0050.00317.56
8.1.10.0040.00417.50
8.1.00.0070.00017.52
8.0.300.0070.00020.02
8.0.290.0040.00416.63
8.0.280.0030.00617.87
8.0.270.0000.00718.06
8.0.260.0060.00017.32
8.0.250.0030.00616.83
8.0.240.0070.00016.84
8.0.230.0000.00716.94
8.0.220.0050.00316.87
8.0.210.0030.00316.77
8.0.200.0030.00316.91
8.0.190.0080.00016.84
8.0.180.0000.00716.94
8.0.170.0030.00516.81
8.0.160.0070.00016.88
8.0.150.0040.00416.79
8.0.140.0040.00416.84
8.0.130.0030.00613.33
8.0.120.0040.00416.89
8.0.110.0080.00016.93
8.0.100.0050.00216.93
8.0.90.0040.00416.77
8.0.80.0100.00716.82
8.0.70.0040.00416.75
8.0.60.0050.00216.79
8.0.50.0080.00016.71
8.0.30.0100.01017.09
8.0.20.0130.01217.40
8.0.10.0000.00716.88
8.0.00.0050.01316.98
7.4.330.0030.00315.03
7.4.320.0030.00316.60
7.4.300.0000.00716.60
7.4.290.0030.00316.41
7.4.280.0040.00416.60
7.4.270.0070.00316.55
7.4.260.0040.00416.53
7.4.250.0000.00716.36
7.4.240.0020.00516.53
7.4.230.0030.00316.34
7.4.220.0100.00716.46
7.4.210.0130.01016.52
7.4.200.0090.00016.38
7.4.160.0110.00416.43
7.4.150.0100.01017.40
7.4.140.0110.01017.86
7.4.130.0140.00516.53
7.4.120.0060.01216.44
7.4.110.0130.00616.50
7.4.100.0100.01016.40
7.4.90.0110.00616.29
7.4.80.0100.01019.39
7.4.70.0120.01116.43
7.4.60.0070.01016.67
7.4.50.0000.00716.60
7.4.40.0100.00616.61
7.4.30.0090.01216.54
7.4.00.0050.01014.81
7.3.330.0040.00413.32
7.3.320.0000.00513.24
7.3.310.0070.00016.20
7.3.300.0050.00216.32
7.3.290.0070.01016.31
7.3.280.0080.01116.26
7.3.270.0130.01017.40
7.3.260.0100.00716.58
7.3.250.0060.01416.28
7.3.240.0060.01016.47
7.3.230.0160.00016.52
7.3.210.0090.00916.19
7.3.200.0030.01619.39
7.3.190.0090.00616.57
7.3.180.0030.01316.35
7.3.170.0140.00716.27
7.3.160.0130.00316.39
7.3.120.0070.01015.03
7.3.110.0070.01014.58
7.3.100.0110.00714.76
7.3.90.0040.00714.82
7.3.80.0080.00814.48
7.3.70.0110.00514.62
7.3.60.0040.01014.86
7.3.50.0020.01114.76
7.3.40.0060.00914.60
7.3.30.0080.00814.72
7.3.20.0070.00715.81
7.3.10.0100.00616.08
7.3.00.0050.00815.81
7.2.330.0110.00716.83
7.2.320.0180.00016.52
7.2.310.0060.01316.52
7.2.300.0030.01316.67
7.2.290.0130.00516.68
7.2.250.0060.01014.67
7.2.240.0060.01315.08
7.2.230.0030.01314.96
7.2.220.0100.00614.95
7.2.210.0010.01514.91
7.2.200.0050.01014.79
7.2.190.0070.00515.10
7.2.180.0070.01214.96
7.2.170.0050.01415.12
7.2.160.0120.00614.80
7.2.150.0160.00615.25
7.2.140.0030.01815.02
7.2.130.0070.00815.91
7.2.120.0110.00515.88
7.2.110.0040.00915.94
7.2.100.0120.00315.97
7.2.90.0110.00615.95
7.2.80.0080.00816.25
7.2.70.0300.01115.70
7.2.60.0250.00515.99
7.2.50.0240.00715.83
7.2.40.0370.01116.02
7.2.30.0540.00816.29
7.2.20.0400.01016.49
7.2.10.0400.00916.63
7.2.00.0310.01116.57
7.1.330.0030.01015.83
7.1.320.0080.00614.80
7.1.310.0080.00814.80
7.1.300.0070.00814.82
7.1.290.0100.00714.85
7.1.280.0050.01214.81
7.1.270.0070.00614.69
7.1.260.0110.00514.92
7.1.250.0080.00514.82
7.1.240.0100.00313.81
7.1.230.0000.01413.86
7.1.220.0060.01213.62
7.1.210.0080.00513.84
7.1.200.0120.00514.71
7.1.190.0150.00613.79
7.1.180.0100.01013.76
7.1.170.0350.00813.88
7.1.160.0480.01014.71
7.1.150.0510.01114.95
7.1.140.0440.01015.35
7.1.130.0440.01315.16
7.1.120.0460.00915.34
7.1.110.0410.00815.07
7.1.100.0410.01115.00
7.1.90.0520.01114.96
7.1.80.0310.01015.04
7.1.70.0370.01014.47
7.1.60.0500.01228.09
7.1.50.0430.01027.90
7.1.40.0370.01027.69
7.1.30.0430.01427.56
7.1.20.0410.01227.79
7.1.10.0270.00914.28
7.1.00.0260.01214.32
7.0.330.0090.00613.58
7.0.320.0060.00913.61
7.0.310.0090.01013.63
7.0.300.0400.00613.44
7.0.290.0520.00714.40
7.0.280.0090.00713.38
7.0.270.0490.01014.90
7.0.260.0500.00915.05
7.0.250.0430.01014.75
7.0.240.0460.00814.64
7.0.230.0420.00914.80
7.0.220.0430.01314.60
7.0.210.0450.01114.22
7.0.200.0260.01114.20
7.0.190.0280.00814.17
7.0.180.0380.00713.89
7.0.170.0300.00913.90
7.0.160.0290.01013.96
7.0.150.0270.00913.77
7.0.140.0840.01114.02
7.0.130.0260.00814.16
7.0.120.0230.00814.11
7.0.110.0240.00914.08
7.0.100.0260.00714.05
7.0.90.0260.01213.81
7.0.80.0220.01113.99
7.0.70.0240.00813.98
7.0.60.0250.01013.92
7.0.50.0260.00914.05
7.0.40.0260.00814.07
7.0.30.0250.00814.15
7.0.20.0170.00614.05
7.0.10.0310.00614.15
7.0.00.0240.00814.21
5.6.400.0000.01614.50
5.6.390.0030.01514.44
5.6.380.0040.01314.42
5.6.370.0180.00414.45
5.6.360.0070.01414.45
5.6.350.0040.01513.96
5.6.340.0000.01814.25
5.6.330.0030.01213.92
5.6.320.0070.01014.32
5.6.310.0000.01814.30
5.6.300.0140.03317.48
5.6.290.0190.03617.63
5.6.280.0150.03417.57
5.6.270.0150.03117.61
5.6.260.0140.03217.58
5.6.250.0160.03517.52
5.6.240.0130.04217.66
5.6.230.0120.03617.51
5.6.220.0150.03217.53
5.6.210.0160.03817.52
5.6.200.0120.03717.62
5.6.190.0160.03217.43
5.6.180.0150.03617.40
5.6.170.0120.03417.43
5.6.160.0150.03117.49
5.6.150.0140.03917.59
5.6.140.0140.03617.47
5.6.130.0170.02917.48
5.6.120.0110.03617.55
5.6.110.0130.03617.56
5.6.100.0120.03317.46
5.6.90.0150.03317.52
5.6.80.0140.02917.21
5.6.70.0110.03417.09
5.6.60.0110.04517.19
5.6.50.0130.03117.22
5.6.40.0150.03917.22
5.6.30.0170.03117.14
5.6.20.0160.04117.20
5.6.10.0100.03417.20
5.6.00.0140.03517.23
5.5.380.0140.03115.17
5.5.370.0140.03715.09
5.5.360.0150.03115.02
5.5.350.0120.03815.08
5.5.340.0150.03515.36
5.5.330.0130.03715.17
5.5.320.0140.03715.26
5.5.310.0120.03615.42
5.5.300.0120.03315.40
5.5.290.0150.03215.31
5.5.280.0120.03315.46
5.5.270.0100.04015.33
5.5.260.0120.03115.38
5.5.250.0140.03515.19
5.5.240.0120.03115.02
5.5.230.0120.03614.95
5.5.220.0130.03014.87
5.5.210.0110.03115.02
5.5.200.0150.03215.04
5.5.190.0130.03314.84
5.5.180.0080.03714.96
5.5.170.0120.00314.12
5.5.160.0120.03514.93
5.5.150.0130.03015.08
5.5.140.0100.03514.93
5.5.130.0120.03014.90
5.5.120.0120.03614.99
5.5.110.0160.03414.88
5.5.100.0120.03114.86
5.5.90.0170.03114.81
5.5.80.0100.03614.83
5.5.70.0120.03514.84
5.5.60.0140.02814.95
5.5.50.0150.02914.88
5.5.40.0130.02714.80
5.5.30.0120.03114.88
5.5.20.0120.03714.84
5.5.10.0150.03814.88
5.5.00.0140.04014.89
5.4.450.0120.03315.13
5.4.440.0130.03115.17
5.4.430.0130.02815.19
5.4.420.0070.03315.07
5.4.410.0130.03415.01
5.4.400.0130.02815.08
5.4.390.0100.03315.06
5.4.380.0160.02715.09
5.4.370.0090.03414.99
5.4.360.0140.03615.06
5.4.350.0120.03514.91
5.4.340.0130.03515.06
5.4.330.0060.00610.91
5.4.320.0120.03515.00
5.4.310.0130.03114.91
5.4.300.0130.03314.96
5.4.290.0160.02514.93
5.4.280.0130.03315.01
5.4.270.0140.03115.11
5.4.260.0140.03214.94
5.4.250.0150.03414.93
5.4.240.0140.03515.03
5.4.230.0120.03015.06
5.4.220.0150.02915.08
5.4.210.0100.03114.96
5.4.200.0120.02914.97
5.4.190.0130.02814.96
5.4.180.0120.04015.04
5.4.170.0110.03315.06
5.4.160.0140.03314.93
5.4.150.0140.03315.02
5.4.140.0140.03313.75
5.4.130.0120.03313.87
5.4.120.0140.03113.90
5.4.110.0120.03413.95
5.4.100.0110.02913.75
5.4.90.0140.02613.81
5.4.80.0120.03113.85
5.4.70.0110.03313.84
5.4.60.0090.03413.62
5.4.50.0140.03013.76
5.4.40.0140.03113.83
5.4.30.0120.02813.74
5.4.20.0120.02813.75
5.4.10.0080.03113.74
5.4.00.0110.03013.50

preferences:
34.88 ms | 401 KiB | 5 Q