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'; 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.0170.00018.68
8.3.50.0070.00718.12
8.3.40.0160.00019.10
8.3.30.0070.00719.09
8.3.20.0080.00019.38
8.3.10.0080.00023.89
8.3.00.0000.00820.77
8.2.180.0090.00618.67
8.2.170.0180.00022.96
8.2.160.0110.00720.89
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00421.37
8.2.110.0030.00721.21
8.2.100.0090.00318.09
8.2.90.0080.00017.88
8.2.80.0030.00617.97
8.2.70.0050.00318.02
8.2.60.0040.00418.22
8.2.50.0000.00818.10
8.2.40.0000.00819.60
8.2.30.0040.00419.26
8.2.20.0040.00418.13
8.2.10.0040.00418.15
8.2.00.0040.00717.79
8.1.280.0070.00725.92
8.1.270.0040.00419.00
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00322.59
8.1.230.0000.01122.29
8.1.220.0080.00017.77
8.1.210.0000.00918.77
8.1.200.0060.00317.50
8.1.190.0000.00917.48
8.1.180.0040.00718.10
8.1.170.0000.00818.72
8.1.160.0070.00018.98
8.1.150.0000.00718.94
8.1.140.0000.00722.32
8.1.130.0000.00720.27
8.1.120.0030.00417.52
8.1.110.0080.00317.60
8.1.100.0000.00717.55
8.1.90.0020.00517.51
8.1.80.0040.00417.52
8.1.70.0030.00617.50
8.1.60.0000.00817.56
8.1.50.0040.00417.62
8.1.40.0000.00817.60
8.1.30.0070.00517.68
8.1.20.0030.00617.75
8.1.10.0030.00517.64
8.1.00.0000.00717.55
8.0.300.0040.00418.77
8.0.290.0070.00317.00
8.0.280.0040.00418.57
8.0.270.0070.00017.37
8.0.260.0040.00418.66
8.0.250.0100.00017.23
8.0.240.0070.00017.12
8.0.230.0030.00317.10
8.0.220.0000.00717.02
8.0.210.0030.00317.13
8.0.200.0030.00317.14
8.0.190.0050.00217.03
8.0.180.0040.00417.08
8.0.170.0000.00917.09
8.0.160.0050.00317.09
8.0.150.0000.00817.04
8.0.140.0080.00017.02
8.0.130.0060.00313.73
8.0.120.0000.00817.14
8.0.110.0000.00916.99
8.0.100.0000.00817.07
8.0.90.0000.00717.12
8.0.80.0070.01217.22
8.0.70.0000.00817.11
8.0.60.0030.00517.12
8.0.50.0000.00717.10
8.0.30.0140.00417.17
8.0.20.0130.00717.40
8.0.10.0060.00317.11
8.0.00.0080.01117.08
7.4.330.0030.00315.55
7.4.320.0000.00616.55
7.4.300.0030.00316.63
7.4.290.0000.00816.70
7.4.280.0000.01016.67
7.4.270.0000.00716.61
7.4.260.0000.00816.61
7.4.250.0030.00516.76
7.4.240.0070.00016.83
7.4.230.0030.00316.84
7.4.220.0040.00416.85
7.4.210.0070.00916.87
7.4.200.0000.00816.63
7.4.160.0090.00916.70
7.4.140.0110.01017.86
7.4.130.0110.00716.74
7.4.120.0090.01116.73
7.4.110.0170.00716.69
7.4.100.0090.00916.68
7.4.90.0130.00716.70
7.4.80.0120.00619.39
7.4.70.0060.01216.63
7.4.60.0060.01216.72
7.4.50.0040.00816.65
7.4.40.0160.00716.74
7.4.10.0070.01015.17
7.4.00.0060.01115.30
7.3.330.0050.00013.56
7.3.320.0000.00513.57
7.3.310.0060.00316.49
7.3.300.0000.00716.57
7.3.290.0040.00316.45
7.3.280.0090.00716.56
7.3.260.0110.00916.61
7.3.240.0110.01116.67
7.3.230.0090.00916.61
7.3.210.0120.00616.39
7.3.200.0030.01416.54
7.3.190.0100.00716.82
7.3.180.0110.00516.59
7.3.170.0070.01716.52
7.3.160.0160.00716.46
7.3.130.0180.00015.11
7.3.120.0090.01014.87
7.3.110.0100.01014.75
7.3.100.0070.00714.97
7.3.90.0060.01014.89
7.3.80.0040.00914.99
7.3.70.0030.01014.99
7.3.60.0070.00615.06
7.3.50.0040.00915.01
7.3.40.0080.00614.83
7.3.30.0050.01014.97
7.3.20.0050.00916.86
7.3.10.0090.00516.66
7.3.00.0040.01016.68
7.2.330.0060.01516.82
7.2.320.0120.00916.83
7.2.310.0070.01116.52
7.2.300.0060.01216.51
7.2.290.0130.00616.63
7.2.260.0040.01515.43
7.2.250.0080.01115.17
7.2.240.0050.01515.05
7.2.230.0050.01215.05
7.2.220.0010.01414.95
7.2.210.0070.00915.15
7.2.200.0100.00415.13
7.2.190.0080.00615.14
7.2.180.0040.00614.87
7.2.170.0080.00614.88
7.2.160.0050.00815.01
7.2.150.0100.00516.83
7.2.140.0050.01016.99
7.2.130.0090.00616.92
7.2.120.0050.01217.07
7.2.110.0250.00716.29
7.2.100.0250.01116.44
7.2.90.0240.01016.43
7.2.80.0240.00916.42
7.2.70.0250.00816.47
7.2.60.0250.00916.52
7.2.50.0230.00916.41
7.2.40.0350.01016.47
7.2.30.0200.00816.44
7.2.20.0290.00716.46
7.2.10.0170.00616.48
7.2.00.0280.00816.38
7.1.330.0050.01116.01
7.1.320.0020.00915.98
7.1.310.0060.00915.95
7.1.300.0070.00615.97
7.1.290.0040.00815.92
7.1.280.0080.00415.92
7.1.270.0040.00915.96
7.1.260.0080.00815.98
7.1.250.0060.00915.97
7.1.240.0060.00815.83
7.1.230.0280.00915.23
7.1.220.0310.00615.16
7.1.210.0200.01015.26
7.1.200.0290.00515.21
7.1.190.0120.00915.22
7.1.180.0320.00415.23
7.1.170.0310.00815.31
7.1.160.0300.00615.05
7.1.150.0270.00615.22
7.1.140.0350.00415.26
7.1.130.0300.01315.17
7.1.120.0300.01215.12
7.1.110.0360.00715.26
7.1.100.0310.00915.41
7.1.90.0340.00715.34
7.1.80.0310.01015.32
7.1.70.0280.01215.25
7.1.60.0330.00821.40
7.1.50.0420.00621.33
7.1.40.0460.00921.28
7.1.30.0410.00821.34
7.1.20.0460.00721.36
7.1.10.0420.00515.16
7.1.00.0390.00715.27
7.0.330.0050.00915.21
7.0.320.0090.00315.29
7.0.310.0060.00515.27
7.0.300.0070.00615.42
7.0.290.0070.00415.11
7.0.280.0040.00815.15
7.0.270.0050.00715.32
7.0.260.0070.01015.22
7.0.250.0120.00515.19
7.0.240.0060.00515.29
7.0.230.0060.00815.17
7.0.220.0080.00915.18
7.0.210.0080.00815.36
7.0.200.0010.01015.41
7.0.190.0040.00615.22
7.0.180.0050.00815.10
7.0.170.0060.00715.41
7.0.160.0040.00915.33
7.0.150.0070.00915.35
7.0.140.0060.00815.31
7.0.130.0090.00415.21
7.0.120.0050.00815.30
7.0.110.0040.00715.30
7.0.100.0050.00815.37
7.0.90.0070.00415.20
7.0.80.0040.01015.17
7.0.70.0000.01315.32
7.0.60.0050.00715.22
7.0.50.0050.00815.41
7.0.40.0060.00713.23
7.0.30.0040.00913.28
7.0.20.0050.00813.40
7.0.10.0050.01013.49
7.0.00.0020.01313.35
5.6.400.0070.00314.02
5.6.390.0060.00814.20
5.6.380.0040.00914.04
5.6.370.0030.01014.08
5.6.360.0050.00514.08
5.6.350.0060.00814.23
5.6.340.0050.00714.30
5.6.330.0080.00614.12
5.6.320.0090.00514.29
5.6.310.0050.01114.21
5.6.300.0050.01014.11
5.6.290.0050.00914.18
5.6.280.0080.00614.22
5.6.270.0070.00714.04
5.6.260.0070.00814.02
5.6.250.0070.00514.09
5.6.240.0030.01214.14
5.6.230.0030.01014.21
5.6.220.0070.00714.23
5.6.210.0030.00914.08
5.6.200.0050.00614.18
5.6.190.0100.00514.16
5.6.180.0030.01214.02
5.6.170.0050.01114.08
5.6.160.0060.00814.22
5.6.150.0050.00914.06
5.6.140.0090.00513.90
5.6.130.0040.01114.05
5.6.120.0070.00814.17
5.6.110.0070.00414.13
5.6.100.0120.00214.20
5.6.90.0080.00813.94
5.6.80.0060.00914.04
5.6.70.0080.00514.03
5.6.60.0050.00914.01
5.6.50.0050.01014.04
5.6.40.0060.00514.00
5.6.30.0050.00714.10
5.6.20.0000.01213.94
5.6.10.0040.00914.29
5.6.00.0020.01313.94

preferences:
50.42 ms | 400 KiB | 5 Q