3v4l.org

run code in 300+ PHP versions simultaneously
<?php class abc{ protected const A = [1, 2, 3]; public static function abcd(){ return abc::A; } } print_r(abc::abcd()); $file_url = 'http://www.javatpoint.com/f.txt'; header('Content-Type: application/octet-stream'); header("Content-Transfer-Encoding: utf-8"); header("Content-disposition: attachment; filename=\"" . basename($file_url) . "\""); readfile($file_url);

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.0150.00418.68
8.3.50.0070.00718.41
8.3.40.0070.00719.17
8.3.30.0130.00319.12
8.3.20.0040.00419.43
8.3.10.0040.00423.99
8.3.00.0080.00021.06
8.2.180.0130.00618.55
8.2.170.0040.01122.96
8.2.160.0120.00321.12
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0040.00419.89
8.2.120.0040.00426.35
8.2.110.0080.00321.07
8.2.100.0060.00618.03
8.2.90.0080.00018.00
8.2.80.0000.01017.97
8.2.70.0080.00018.05
8.2.60.0000.00818.34
8.2.50.0050.00318.10
8.2.40.0040.00419.61
8.2.30.0080.00019.38
8.2.20.0040.00418.14
8.2.10.0050.00318.26
8.2.00.0050.00517.72
8.1.280.0070.01025.92
8.1.270.0080.00019.15
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00622.67
8.1.230.0070.00422.25
8.1.220.0060.00317.91
8.1.210.0080.00018.77
8.1.200.0000.00917.48
8.1.190.0000.00917.38
8.1.180.0070.00418.10
8.1.170.0050.00318.74
8.1.160.0060.00319.04
8.1.150.0000.00718.97
8.1.140.0040.00422.39
8.1.130.0040.00420.39
8.1.120.0040.00417.58
8.1.110.0090.00017.54
8.1.100.0000.00717.61
8.1.90.0070.00017.59
8.1.80.0080.00017.59
8.1.70.0050.00517.48
8.1.60.0020.00717.71
8.1.50.0080.00017.67
8.1.40.0040.00417.61
8.1.30.0030.00717.77
8.1.20.0050.00517.77
8.1.10.0060.00317.73
8.1.00.0040.00417.57
8.0.300.0000.00818.77
8.0.290.0000.01016.75
8.0.280.0000.00718.62
8.0.270.0040.00417.52
8.0.260.0080.00018.70
8.0.250.0000.00917.20
8.0.240.0000.00717.20
8.0.230.0070.00017.30
8.0.220.0030.00317.12
8.0.210.0030.00317.12
8.0.200.0030.00317.23
8.0.190.0000.00717.18
8.0.180.0040.00417.19
8.0.170.0040.00417.20
8.0.160.0040.00417.16
8.0.150.0040.00417.11
8.0.140.0050.00317.13
8.0.130.0000.00613.67
8.0.120.0040.00417.10
8.0.110.0030.00517.18
8.0.100.0000.00817.14
8.0.90.0080.00017.12
8.0.80.0110.00817.25
8.0.70.0030.00517.18
8.0.60.0030.00517.18
8.0.50.0050.00317.13
8.0.30.0070.01317.33
8.0.20.0140.01417.47
8.0.10.0030.00617.22
8.0.00.0110.00816.88
7.4.330.0020.00215.55
7.4.320.0030.00316.66
7.4.300.0030.00316.73
7.4.290.0070.00016.63
7.4.280.0060.00616.71
7.4.270.0000.00716.86
7.4.260.0070.00016.67
7.4.250.0070.00016.80
7.4.240.0000.00816.92
7.4.230.0000.00716.73
7.4.220.0080.00016.70
7.4.210.0040.01116.77
7.4.200.0040.00416.74
7.4.160.0080.01016.72
7.4.140.0130.00717.86
7.4.130.0040.01516.60
7.4.120.0120.01016.81
7.4.110.0200.00316.71
7.4.100.0090.00916.84
7.4.90.0180.02916.83
7.4.80.0070.01619.39
7.4.70.0090.01416.68
7.4.60.0080.01016.77
7.4.50.0030.01316.83
7.4.40.0130.01116.67
7.4.10.0110.01115.33
7.4.00.0070.01115.19
7.3.330.0000.00513.42
7.3.320.0030.00313.40
7.3.310.0060.00316.75
7.3.300.0050.00216.58
7.3.290.0000.00716.65
7.3.280.0120.00716.65
7.3.260.0100.00916.67
7.3.240.0120.00816.74
7.3.230.0110.00816.66
7.3.210.0070.01116.75
7.3.200.0030.01716.70
7.3.190.0060.01316.71
7.3.180.0090.00816.76
7.3.170.0150.00916.59
7.3.160.0080.01216.77
7.3.130.0120.00815.04
7.3.120.0100.01015.08
7.3.110.0030.01215.03
7.3.100.0060.01115.00
7.3.90.0070.01115.10
7.3.80.0040.01214.85
7.3.70.0060.00814.89
7.3.60.0060.00714.85
7.3.50.0050.01014.94
7.3.40.0020.01014.92
7.3.30.0090.00615.03
7.3.20.0040.01416.86
7.3.10.0070.00616.79
7.3.00.0060.00916.92
7.2.330.0030.01516.80
7.2.320.0190.00016.55
7.2.310.0040.01216.69
7.2.300.0080.01216.85
7.2.290.0170.00316.50
7.2.260.0070.01115.33
7.2.250.0090.00915.30
7.2.240.0050.01415.26
7.2.230.0100.00815.13
7.2.220.0090.01015.07
7.2.210.0070.00815.07
7.2.200.0040.00915.28
7.2.190.0050.01015.23
7.2.180.0040.00915.10
7.2.170.0050.01215.03
7.2.160.0070.01115.14
7.2.150.0060.01016.80
7.2.140.0100.00317.10
7.2.130.0070.00317.21
7.2.120.0060.01016.79
7.2.110.0080.00815.95
7.2.100.0320.00515.70
7.2.90.0240.01115.96
7.2.80.0020.01316.00
7.2.70.0100.00716.05
7.2.60.0060.01516.13
7.2.50.0520.01315.96
7.2.40.0380.00916.03
7.2.30.0380.00815.96
7.2.20.0400.00715.93
7.2.10.0360.01116.03
7.2.00.0380.00815.89
7.1.330.0050.01116.07
7.1.320.0060.00915.99
7.1.310.0050.00915.88
7.1.300.0090.00515.94
7.1.290.0070.00815.99
7.1.280.0030.01015.97
7.1.270.0060.01015.99
7.1.260.0060.01116.03
7.1.250.0040.01116.15
7.1.240.0090.00615.83
7.1.230.0070.01214.98
7.1.220.0060.00814.92
7.1.210.0050.01114.97
7.1.200.0040.00915.11
7.1.190.0170.01214.90
7.1.180.0460.01215.00
7.1.170.0540.00514.82
7.1.160.0520.00815.11
7.1.150.0400.00514.95
7.1.140.0410.00814.93
7.1.130.0390.01014.89
7.1.120.0390.00514.71
7.1.110.0450.00915.10
7.1.100.0420.01015.00
7.1.90.0370.00914.85
7.1.80.0610.00814.85
7.1.70.0640.00514.93
7.1.60.0580.00524.11
7.1.50.0690.01223.79
7.1.40.0630.01024.03
7.1.30.1120.01124.07
7.1.20.0850.01024.06
7.1.10.0860.00914.81
7.1.00.0460.00915.22
7.0.330.0060.00615.09
7.0.320.0060.00615.14
7.0.310.0000.01415.34
7.0.300.0070.01015.14
7.0.290.0090.00314.88
7.0.280.0030.00615.20
7.0.270.0030.01015.25
7.0.260.0030.01215.33
7.0.250.0060.00615.25
7.0.240.0060.00715.44
7.0.230.0030.00615.44
7.0.220.0100.00315.30
7.0.210.0080.00515.20
7.0.200.0030.00615.19
7.0.190.0000.01415.23
7.0.180.0080.00415.39
7.0.170.0000.00815.34
7.0.160.0090.00015.37
7.0.150.0030.01015.35
7.0.140.0040.01115.20
7.0.130.0080.00315.36
7.0.120.0030.01015.31
7.0.110.0060.00715.45
7.0.100.0100.00315.35
7.0.90.0000.01515.32
7.0.80.0060.00615.27
7.0.70.0030.00615.38
7.0.60.0000.01115.11
7.0.50.0040.00415.25
7.0.40.0030.00913.09
7.0.30.0030.01213.12
7.0.20.0060.00613.39
7.0.10.0000.00813.32
7.0.00.0000.01613.33
5.6.400.0100.00313.95
5.6.390.0070.00714.13
5.6.380.0070.00913.95
5.6.370.0000.01513.94
5.6.360.0100.00314.37
5.6.350.0100.00314.16
5.6.340.0040.00814.23
5.6.330.0090.00913.68
5.6.320.0090.00614.45
5.6.310.0110.00414.24
5.6.300.0000.00814.16
5.6.290.0090.00014.32
5.6.280.0030.00914.06
5.6.270.0040.01114.05
5.6.260.0110.00414.19
5.6.250.0060.00914.27
5.6.240.0070.00714.20
5.6.230.0030.01314.14
5.6.220.0000.01013.79
5.6.210.0070.00713.79
5.6.200.0000.00814.25
5.6.190.0040.01113.89
5.6.180.0110.00313.82
5.6.170.0090.00914.03
5.6.160.0000.01314.31
5.6.150.0030.01014.30
5.6.140.0070.00714.36
5.6.130.0000.00814.10
5.6.120.0000.00914.09
5.6.110.0040.01113.89
5.6.100.0070.00714.09
5.6.90.0060.00613.98
5.6.80.0100.00713.86
5.6.70.0090.00614.03
5.6.60.0080.00613.87
5.6.50.0080.00814.22
5.6.40.0070.00313.95
5.6.30.0000.01013.93
5.6.20.0000.01114.06
5.6.10.0040.00413.86
5.6.00.0080.00413.89

preferences:
64.71 ms | 400 KiB | 5 Q