3v4l.org

run code in 300+ PHP versions simultaneously
<?php register_shutdown_function(function () { $error = error_get_last(); if ($error !== null) { throw new ErrorException($error['message'], 0, $error['type'], $error['file'], $error['line']); } }); ini_set('memory_limit',1); $a = range(1,100000);

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.70.0090.00617.96
8.3.60.0120.00920.49
8.3.50.0120.00521.85
8.3.40.0030.01720.42
8.3.30.0100.00720.34
8.3.20.0040.00423.27
8.3.10.0060.00321.84
8.3.00.0080.00024.36
8.2.190.0170.00718.00
8.2.180.0110.00420.65
8.2.170.0120.00422.96
8.2.160.0110.00724.25
8.2.150.0090.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00626.16
8.2.110.0000.00923.11
8.2.100.0090.00419.47
8.2.90.0060.00322.00
8.2.80.0060.00319.53
8.2.70.0000.00819.55
8.2.60.0060.00319.65
8.2.50.0060.00319.13
8.2.40.0050.00320.74
8.2.30.0030.00520.53
8.2.20.0000.00819.41
8.2.10.0080.00020.67
8.2.00.0000.00820.54
8.1.280.0120.00625.92
8.1.270.0030.00625.27
8.1.260.0000.00827.87
8.1.250.0050.00528.09
8.1.240.0090.00027.80
8.1.230.0140.00025.75
8.1.220.0000.00920.66
8.1.210.0100.00022.15
8.1.200.0000.01020.47
8.1.190.0000.00920.48
8.1.180.0090.00020.78
8.1.170.0000.00921.64
8.1.160.0000.00923.64
8.1.150.0040.00421.89
8.1.140.0040.00423.93
8.1.130.0090.00020.45
8.1.120.0000.01020.23
8.1.110.0030.00620.34
8.1.100.0030.00620.25
8.1.90.0050.00520.28
8.1.80.0000.00820.23
8.1.70.0030.00520.13
8.1.60.0070.00320.43
8.1.50.0040.00420.34
8.1.40.0030.00720.40
8.1.30.0090.00020.45
8.1.20.0090.00020.44
8.1.10.0040.00420.32
8.1.00.0040.00420.09
8.0.300.0030.00519.81
8.0.290.0030.00716.75
8.0.280.0030.00318.36
8.0.270.0070.00017.07
8.0.260.0030.00316.88
8.0.250.0040.00416.95
8.0.240.0000.00616.92
8.0.230.0000.00716.95
8.0.220.0070.00016.80
8.0.210.0030.00316.86
8.0.200.0000.00717.00
8.0.190.0040.00416.85
8.0.180.0040.00717.03
8.0.170.0000.01216.87
8.0.160.0070.00016.91
8.0.150.0030.00516.87
8.0.140.0040.00416.87
8.0.130.0000.00513.32
8.0.120.0000.00716.83
8.0.110.0000.00816.79
8.0.100.0040.00416.92
8.0.90.0000.00717.00
8.0.80.0130.00816.90
8.0.70.0040.00416.98
8.0.60.0040.00416.78
8.0.50.0000.00716.75
8.0.30.0050.01316.91
8.0.20.0140.00417.07
8.0.10.0040.00417.02
8.0.00.0120.00616.83
7.4.330.0060.00016.89
7.4.320.0070.00016.59
7.4.300.0000.00616.52
7.4.290.0000.00816.63
7.4.280.0040.00416.50
7.4.270.0000.00716.53
7.4.260.0000.00713.27
7.4.250.0050.00216.64
7.4.240.0020.00616.47
7.4.230.0030.00316.60
7.4.220.0040.00316.50
7.4.210.0080.01016.55
7.4.200.0000.00716.66
7.4.130.0100.01016.69
7.4.120.0050.01416.56
7.4.110.0100.00716.59
7.4.100.0100.01016.62
7.4.90.0080.00816.57
7.4.80.0120.00919.39
7.4.70.0030.01416.43
7.4.60.0130.00316.47
7.4.50.0030.01216.48
7.4.40.0080.01616.42
7.4.10.0120.00415.07
7.4.00.0070.01115.03
7.3.330.0030.00616.37
7.3.320.0000.00613.22
7.3.310.0070.00016.35
7.3.300.0000.00716.32
7.3.290.0130.00316.40
7.3.280.0110.00616.33
7.3.260.0110.00816.52
7.3.240.0070.01416.35
7.3.230.0100.00816.38
7.3.210.0000.01616.55
7.3.200.0060.01216.62
7.3.190.0070.01116.47
7.3.180.0000.01616.44
7.3.170.0080.01516.37
7.3.160.0030.01216.50
7.3.130.0110.00415.07
7.3.120.0050.01314.93
7.3.110.0090.00915.01
7.3.100.0080.01014.97
7.3.90.0000.01214.84
7.3.80.0090.00814.84
7.3.70.0120.00414.86
7.3.60.0080.00814.89
7.3.50.0090.00614.79
7.3.40.0090.00814.84
7.3.30.0090.00514.88
7.3.20.0070.01116.23
7.3.10.0080.01116.15
7.3.00.0090.00816.22
7.2.330.0060.01216.52
7.2.320.0030.01416.71
7.2.310.0060.01116.43
7.2.300.0070.01016.75
7.2.290.0100.00716.49
7.2.260.0100.01315.07
7.2.250.0070.00915.05
7.2.240.0080.00515.05
7.2.230.0080.00615.12
7.2.220.0060.00614.93
7.2.210.0100.00515.03
7.2.200.0080.00714.96
7.2.190.0110.00615.03
7.2.180.0050.01014.98
7.2.170.0070.00815.04
7.2.160.0070.00815.04
7.2.150.0110.00916.42
7.2.140.0120.00816.47
7.2.130.0120.00516.43
7.2.120.0050.01316.42
7.2.110.0070.01216.38
7.2.100.0390.00916.33
7.2.90.0050.01416.54
7.2.80.0140.00816.45
7.2.70.0080.01216.45
7.2.60.0130.01015.94
7.2.50.0090.00716.45
7.2.40.0110.00916.41
7.2.30.0140.01016.33
7.2.20.0090.00816.47
7.2.10.0090.00716.33
7.2.00.0100.00716.25
7.1.330.0070.01015.89
7.1.320.0060.00715.80
7.1.310.0210.00715.24
7.1.300.0100.00615.32
7.1.290.0070.01015.19
7.1.280.0090.00815.29
7.1.270.0120.00515.21
7.1.260.0100.00715.22
7.1.250.0060.01215.35
7.1.240.0070.00715.79
7.1.230.0060.00615.81
7.1.220.0090.00615.87
7.1.210.0070.01015.90
7.1.200.0060.00715.89
7.1.190.0060.00815.87
7.1.180.0050.00815.72
7.1.170.0090.00315.59
7.1.160.0080.00515.78
7.1.150.0050.00615.71
7.1.140.0040.00915.88
7.1.130.0080.00315.81
7.1.120.0050.00615.80
7.1.110.0080.00515.72
7.1.100.0020.01115.67
7.1.90.0050.00715.63
7.1.80.0060.00615.78
7.1.70.0050.00715.82
7.1.60.0090.00415.89
7.1.50.0080.00615.88
7.1.40.0040.00915.70
7.1.30.0030.01015.82
7.1.20.0070.00615.58
7.1.10.0080.00815.83
7.1.00.0070.01015.73

preferences:
32.66 ms | 401 KiB | 5 Q