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"; parent::test('more', '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.40.0200.00018.97
8.3.30.0110.00318.96
8.3.20.0050.00220.34
8.3.10.0000.00723.66
8.3.00.0050.00319.18
8.2.170.0080.00822.96
8.2.160.0130.00022.26
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0050.00226.16
8.2.120.0030.00520.88
8.2.110.0060.00319.19
8.2.100.0110.00017.72
8.2.90.0060.00319.23
8.2.80.0080.00017.97
8.2.70.0000.01017.50
8.2.60.0040.00417.93
8.2.50.0040.00418.07
8.2.40.0080.00018.03
8.2.30.0080.00018.02
8.2.20.0040.00417.61
8.2.10.0070.00018.05
8.2.00.0000.00717.68
8.1.270.0030.00619.00
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00320.87
8.1.230.0080.00417.42
8.1.220.0000.00917.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0000.00817.23
8.1.180.0040.00419.01
8.1.170.0060.00318.57
8.1.160.0030.00522.02
8.1.150.0000.00718.95
8.1.140.0000.00819.14
8.1.130.0000.00717.73
8.1.120.0020.00517.48
8.1.110.0040.00417.37
8.1.100.0080.00017.43
8.1.90.0050.00217.45
8.1.80.0040.00417.45
8.1.70.0040.00417.46
8.1.60.0000.00817.61
8.1.50.0000.00817.41
8.1.40.0000.00917.59
8.1.30.0040.00417.55
8.1.20.0040.00417.67
8.1.10.0040.00417.54
8.1.00.0070.00017.42
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0000.00718.43
8.0.270.0070.00017.23
8.0.260.0030.00317.21
8.0.250.0030.00716.99
8.0.240.0000.00716.83
8.0.230.0030.00316.83
8.0.220.0040.00416.99
8.0.210.0070.00016.90
8.0.200.0050.00216.85
8.0.190.0040.00416.87
8.0.180.0040.00416.91
8.0.170.0090.00016.97
8.0.160.0000.00716.93
8.0.150.0000.00816.81
8.0.140.0050.00216.89
8.0.130.0040.00313.32
8.0.120.0070.00016.86
8.0.110.0000.00716.87
8.0.100.0080.00016.83
8.0.90.0000.00716.89
8.0.80.0090.00616.84
8.0.70.0040.00416.71
8.0.60.0030.00516.78
8.0.50.0040.00416.84
8.0.30.0130.00917.14
8.0.20.0120.00817.40
8.0.10.0070.00017.05
8.0.00.0080.01116.83
7.4.330.0050.00315.03
7.4.320.0030.00316.52
7.4.300.0000.00616.48
7.4.290.0000.00716.51
7.4.280.0050.00216.59
7.4.270.0030.00716.58
7.4.260.0050.00216.51
7.4.250.0040.00416.57
7.4.240.0020.00516.48
7.4.230.0070.00016.53
7.4.220.0120.00916.52
7.4.210.0040.01116.61
7.4.200.0050.00216.54
7.4.160.0120.00816.50
7.4.150.0170.00917.40
7.4.140.0140.00817.86
7.4.130.0070.01016.44
7.4.120.0080.01216.56
7.4.110.0060.01416.43
7.4.100.0160.00316.33
7.4.90.0140.00316.57
7.4.80.0080.01119.39
7.4.70.0100.00716.50
7.4.60.0100.00716.39
7.4.50.0000.00416.60
7.4.40.0080.00816.38
7.4.30.0140.00616.50
7.4.10.0080.00914.89
7.4.00.0060.01114.93
7.3.330.0070.00013.18
7.3.320.0000.00513.33
7.3.310.0070.00016.20
7.3.300.0070.00016.19
7.3.290.0090.00716.35
7.3.280.0100.00716.32
7.3.270.0130.01317.40
7.3.260.0060.01116.27
7.3.250.0110.00716.27
7.3.240.0070.01016.60
7.3.230.0130.00316.39
7.3.210.0100.00716.24
7.3.200.0130.00319.39
7.3.190.0030.01316.25
7.3.180.0060.00916.44
7.3.170.0160.00616.65
7.3.160.0100.00616.47
7.3.130.0100.00714.91
7.3.120.0060.00914.81
7.3.110.0070.00814.70
7.3.100.0020.01114.69
7.3.90.0070.00714.83
7.3.80.0050.00714.69
7.3.70.0080.00614.59
7.3.60.0060.00814.79
7.3.50.0060.00614.65
7.3.40.0060.00614.56
7.3.30.0080.00514.69
7.3.20.0020.01316.66
7.3.10.0060.00716.52
7.3.00.0050.00916.62
7.2.330.0100.00716.38
7.2.320.0070.01316.70
7.2.310.0030.01516.69
7.2.300.0090.01416.49
7.2.290.0000.01816.70
7.2.260.0090.00815.12
7.2.250.0090.00814.88
7.2.240.0050.00914.98
7.2.230.0090.00615.03
7.2.220.0070.00415.05
7.2.210.0060.00615.11
7.2.200.0120.00615.07
7.2.190.0050.01015.00
7.2.180.0130.00314.97
7.2.170.0090.00515.10
7.2.160.0090.00514.97
7.2.150.0040.01116.94
7.2.140.0080.00516.86
7.2.130.0050.00816.72
7.2.120.0060.00616.91
7.2.110.0050.00916.86
7.2.100.0110.00416.92
7.2.90.0030.01116.82
7.2.80.0030.01016.74
7.2.70.0080.00316.72
7.2.60.0070.00916.83
7.2.50.0030.01216.88
7.2.40.0050.00716.53
7.2.30.0050.00916.92
7.2.20.0090.00616.87
7.2.10.0050.01016.90
7.2.00.0060.00917.58
7.1.330.0070.00715.63
7.1.320.0060.00815.67
7.1.310.0090.00115.71
7.1.300.0050.00815.58
7.1.290.0070.00315.60
7.1.280.0070.00515.70
7.1.270.0100.00615.79
7.1.260.0030.00715.67
7.1.250.0050.00615.90
7.1.240.0030.00715.75
7.1.230.0040.00915.72
7.1.220.0060.00615.70
7.1.210.0060.00615.81
7.1.200.0110.00215.67
7.1.190.0030.01015.80
7.1.180.0020.00915.68
7.1.170.0030.01015.79
7.1.160.0050.00815.68
7.1.150.0030.00915.69
7.1.140.0030.00715.79
7.1.130.0050.00615.70
7.1.120.0070.00515.71
7.1.110.0090.00415.87
7.1.100.0050.00716.30
7.1.90.0050.00715.79
7.1.80.0060.00615.76
7.1.70.0050.00416.25
7.1.60.0070.00716.26
7.1.50.0060.00916.04
7.1.40.0020.01115.80
7.1.30.0090.00815.53
7.1.20.0050.00815.63
7.1.10.0060.00715.82
7.1.00.0080.02817.89
7.0.330.0100.00515.27
7.0.320.0070.00715.31
7.0.310.0080.00315.11
7.0.300.0040.00915.25
7.0.290.0090.00415.12
7.0.280.0050.00715.11
7.0.270.0080.00415.27
7.0.260.0030.01015.29
7.0.250.0030.01215.41
7.0.240.0050.00515.47
7.0.230.0020.01015.18
7.0.220.0050.00415.28
7.0.210.0020.00815.11
7.0.200.0080.00615.79
7.0.190.0050.00515.35
7.0.180.0050.00915.49
7.0.170.0050.00815.27
7.0.160.0030.01315.36
7.0.150.0050.00515.29
7.0.140.0070.02317.64
7.0.130.0070.00715.34
7.0.120.0050.00515.40
7.0.110.0070.00415.42
7.0.100.0050.00615.35
7.0.90.0030.00915.31
7.0.80.0050.01315.39
7.0.70.0050.00715.26
7.0.60.0020.03616.88
7.0.50.0070.02916.19
7.0.40.0060.02915.57
7.0.30.0040.02315.63
7.0.20.0150.03215.68
7.0.10.0110.02915.68
7.0.00.0050.02415.68
5.6.400.0060.00614.29
5.6.390.0050.00514.35
5.6.380.0070.00614.21
5.6.370.0060.00614.38
5.6.360.0040.00714.33
5.6.350.0050.00614.44
5.6.340.0050.00714.27
5.6.330.0020.01114.46
5.6.320.0080.00814.29
5.6.310.0030.00814.35
5.6.300.0090.00414.31
5.6.290.0050.01214.38
5.6.280.0070.02716.55
5.6.270.0050.00814.30
5.6.260.0060.00614.43
5.6.250.0070.00514.47
5.6.240.0090.00514.19
5.6.230.0080.01014.33
5.6.220.0060.00614.19
5.6.210.0030.02716.34
5.6.200.0050.02215.49
5.6.190.0010.02116.29
5.6.180.0140.03116.31
5.6.170.0150.01916.28
5.6.160.0030.02716.44
5.6.150.0090.02715.50
5.6.140.0070.03215.56
5.6.130.0060.01815.56
5.6.120.0060.02916.55
5.6.110.0050.03116.46
5.6.100.0060.03616.61
5.6.90.0060.02116.49
5.6.80.0030.03016.22
5.6.70.0030.00914.22
5.6.60.0050.00514.21
5.6.50.0080.00314.22
5.6.40.0080.00414.28
5.6.30.0080.00314.23
5.6.20.0080.00714.12
5.6.10.0040.01314.26
5.6.00.0050.00814.07
5.5.380.0060.01114.33
5.5.370.0080.00814.33
5.5.360.0070.00514.33
5.5.350.1460.01816.34
5.5.340.0040.03015.57
5.5.330.0050.02616.26
5.5.320.0150.02816.12
5.5.310.0140.03016.34
5.5.300.0070.03315.54
5.5.290.0050.02015.43
5.5.280.0120.02416.32
5.5.270.0100.02716.39
5.5.260.0060.03616.34
5.5.250.0050.02016.31
5.5.240.0030.01816.18
5.5.230.0080.00713.94
5.5.220.0070.00513.99
5.5.210.0030.01014.31
5.5.200.0040.00713.95
5.5.190.0060.00914.31
5.5.180.0080.00814.15
5.5.170.0100.00614.11
5.5.160.0020.00914.26
5.5.150.0050.00614.14
5.5.140.0020.01013.81
5.5.130.0040.01214.10
5.5.120.0040.00514.05
5.5.110.0060.00713.97
5.5.100.0040.00714.05
5.5.90.0100.00613.97
5.5.80.0030.01014.06
5.5.70.0050.00614.07
5.5.60.0060.00513.99
5.5.50.0040.00914.20
5.5.40.0050.00714.01
5.5.30.0020.01114.21
5.5.20.0060.00514.15
5.5.10.0060.00614.09
5.5.00.0080.00514.10
5.4.450.0300.02013.90
5.4.440.0070.02513.88
5.4.430.0050.02613.76
5.4.420.0090.02013.88
5.4.410.0060.02213.66
5.4.400.0090.02013.73
5.4.390.0090.02313.53
5.4.380.0080.03013.61
5.4.370.0120.01913.55
5.4.360.0070.03113.62
5.4.350.0100.02713.68
5.4.340.0110.02213.56
5.4.330.0020.00711.10
5.4.320.0100.02113.64
5.4.310.0140.01613.75
5.4.300.0100.02113.48
5.4.290.0120.02013.62
5.4.280.0110.02013.50
5.4.270.0050.02613.56
5.4.260.0150.01813.45
5.4.250.0100.02113.63
5.4.240.0080.02513.47
5.4.230.0080.02213.60
5.4.220.0150.01513.62
5.4.210.0080.02213.51
5.4.200.0130.01712.91
5.4.190.0090.02213.51
5.4.180.0070.02413.50
5.4.170.0090.02013.54
5.4.160.0090.02113.44
5.4.150.0090.01913.54
5.4.140.0100.02112.75
5.4.130.0120.01812.68
5.4.120.0120.01712.85
5.4.110.0080.02312.72
5.4.100.0130.02112.70
5.4.90.0120.02612.83
5.4.80.0100.02112.69
5.4.70.0070.02912.71
5.4.60.0090.02012.81
5.4.50.0070.02212.72
5.4.40.0090.02012.69
5.4.30.0080.02112.65
5.4.20.0090.02212.75
5.4.10.0090.02112.63
5.4.00.0060.02612.56
5.3.290.0130.06714.72
5.3.280.0170.05314.78
5.3.270.0200.05014.59
5.3.260.0170.05714.64
5.3.250.0230.04714.77
5.3.240.0200.06014.82
5.3.230.0200.05014.70
5.3.220.0170.05314.61
5.3.210.0130.06014.78
5.3.200.0130.05714.67
5.3.190.0330.04014.67
5.3.180.0170.06014.70
5.3.170.0200.05014.62
5.3.160.0170.05314.67
5.3.150.0070.06314.77
5.3.140.0230.04714.77
5.3.130.0230.04714.70
5.3.120.0170.05714.58
5.3.110.0200.05314.68
5.3.100.0200.05314.14
5.3.90.0170.05314.25
5.3.80.0030.06714.04
5.3.70.0200.05314.07
5.3.60.0170.05314.07
5.3.50.0230.04713.98
5.3.40.0300.04313.94
5.3.30.0270.03714.02
5.3.20.0230.04713.83
5.3.10.0200.05313.87
5.3.00.0100.06013.66
5.2.170.0170.03711.20
5.2.160.0100.04311.13
5.2.150.0170.04011.14
5.2.140.0100.04711.12
5.2.130.0230.03711.30
5.2.120.0070.04711.23
5.2.110.0200.03311.21
5.2.100.0130.03711.15
5.2.90.0230.03011.21
5.2.80.0070.05011.14
5.2.70.0200.03711.30
5.2.60.0130.04011.07
5.2.50.0200.03711.09
5.2.40.0200.03311.22
5.2.30.0070.04710.97
5.2.20.0170.03711.14
5.2.10.0100.04010.96
5.2.00.0070.05010.75
5.1.60.0130.03310.07
5.1.50.0100.03710.13
5.1.40.0130.03310.16
5.1.30.0100.04310.57
5.1.20.0100.04010.35
5.1.10.0170.04010.17
5.1.00.0070.04310.25
5.0.50.0100.0278.59
5.0.40.0100.0238.60
5.0.30.0130.0378.34
5.0.20.0030.0408.23
5.0.10.0070.0308.20
5.0.00.0130.0378.18
4.4.90.0170.0135.92
4.4.80.0130.0175.96
4.4.70.0030.0305.86
4.4.60.0070.0235.86
4.4.50.0070.0206.00
4.4.40.0070.0335.90
4.4.30.0100.0175.89
4.4.20.0100.0206.03
4.4.10.0070.0205.98
4.4.00.0100.0335.96
4.3.110.0030.0235.82
4.3.100.0100.0175.84
4.3.90.0100.0175.79
4.3.80.0100.0305.91
4.3.70.0070.0205.80
4.3.60.0130.0135.77
4.3.50.0000.0305.77
4.3.40.0130.0305.77
4.3.30.0030.0234.59
4.3.20.0030.0234.53
4.3.10.0070.0204.52
4.3.00.0170.0207.15

preferences:
46.72 ms | 400 KiB | 5 Q