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']); } }); try { ini_set('memory_limit',1); $a = range(1,100000); } catch (Throwable $e) { echo "Caught: ".$e; }

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.0030.01618.25
8.3.60.0110.00420.48
8.3.50.0130.00721.90
8.3.40.0160.00020.16
8.3.30.0120.00420.32
8.3.20.0070.00323.41
8.3.10.0090.00021.72
8.3.00.0030.00524.48
8.2.190.0160.00318.13
8.2.180.0090.00620.51
8.2.170.0030.01320.45
8.2.160.0150.00022.96
8.2.150.0070.00324.18
8.2.140.0030.00524.66
8.2.130.0000.00826.16
8.2.120.0050.00322.85
8.2.110.0000.00923.28
8.2.100.0140.00419.53
8.2.90.0080.00019.53
8.2.80.0060.00319.55
8.2.70.0050.00519.27
8.2.60.0040.00419.47
8.2.50.0090.00019.00
8.2.40.0070.00320.98
8.2.30.0080.00020.61
8.2.20.0050.00319.32
8.2.10.0080.00020.61
8.2.00.0000.00920.63
8.1.280.0100.00725.92
8.1.270.0100.00023.94
8.1.260.0060.00326.35
8.1.250.0090.00028.09
8.1.240.0030.00627.98
8.1.230.0070.01124.02
8.1.220.0000.00920.68
8.1.210.0000.00921.76
8.1.200.0040.00720.48
8.1.190.0000.00920.47
8.1.180.0070.00320.67
8.1.170.0040.00421.59
8.1.160.0060.00321.99
8.1.150.0040.00421.82
8.1.140.0030.00523.82
8.1.130.0000.00823.19
8.1.120.0080.00020.21
8.1.110.0090.00020.23
8.1.100.0040.00420.40
8.1.90.0050.00520.30
8.1.80.0030.00620.29
8.1.70.0030.00620.38
8.1.60.0040.00420.44
8.1.50.0060.00320.26
8.1.40.0000.01020.34
8.1.30.0000.01020.34
8.1.20.0060.00320.43
8.1.10.0000.00920.29
8.1.00.0030.00620.24
8.0.300.0000.00719.72
8.0.290.0000.00816.75
8.0.280.0030.00318.40
8.0.270.0040.00417.22
8.0.260.0000.00720.09
8.0.250.0000.00717.02
8.0.240.0040.00416.98
8.0.230.0070.00017.03
8.0.220.0040.00416.88
8.0.210.0050.00316.87
8.0.200.0000.00716.93
8.0.190.0050.00216.93
8.0.180.0060.00317.04
8.0.170.0080.00416.91
8.0.160.0040.00416.94
8.0.150.0030.00516.89
8.0.140.0050.00216.95
8.0.130.0030.00313.41
8.0.120.0000.00716.91
8.0.110.0030.00616.93
8.0.100.0040.00416.76
8.0.90.0040.00416.79
8.0.80.0070.01216.88
8.0.70.0040.00416.86
8.0.60.0040.00416.97
8.0.50.0040.00416.99
8.0.30.0130.00317.22
8.0.20.0060.01317.43
8.0.10.0040.00416.99
8.0.00.0120.00916.79
7.4.330.0060.00016.79
7.4.320.0000.00616.54
7.4.300.0040.00416.62
7.4.290.0080.00016.56
7.4.280.0070.00016.61
7.4.270.0030.00316.54
7.4.260.0060.00013.34
7.4.250.0080.00016.48
7.4.240.0020.00516.62
7.4.230.0000.00716.27
7.4.220.0030.00316.54
7.4.210.0060.00916.59
7.4.200.0040.00216.64
7.4.130.0190.00516.76
7.4.120.0070.01816.66
7.4.110.0120.00416.56
7.4.100.0190.00616.59
7.4.90.0090.00916.59
7.4.80.0060.01019.39
7.4.70.0110.00816.68
7.4.60.0140.00416.49
7.4.50.0100.00716.51
7.4.40.0150.00816.41
7.4.00.0080.00815.02
7.3.330.0040.00416.40
7.3.320.0030.00313.38
7.3.310.0030.00316.39
7.3.300.0030.00316.42
7.3.290.0100.00416.34
7.3.280.0070.01016.33
7.3.260.0100.00916.54
7.3.240.0110.00716.53
7.3.230.0130.01016.35
7.3.210.0130.00316.26
7.3.200.0080.00816.39
7.3.190.0080.01216.25
7.3.180.0060.01016.52
7.3.170.0120.00916.51
7.3.160.0060.00916.50
7.3.120.0140.00314.96
7.3.110.0080.01114.95
7.3.100.0090.00815.01
7.3.90.0050.01014.99
7.3.80.0070.00814.95
7.3.70.0060.00814.86
7.3.60.0070.00814.77
7.3.50.0060.00814.88
7.3.40.0070.00914.63
7.3.30.0050.00814.73
7.3.20.0100.00615.96
7.3.10.0110.00715.90
7.3.00.0100.00716.09
7.2.330.0160.00716.61
7.2.320.0030.01316.41
7.2.310.0030.01316.72
7.2.300.0100.00716.69
7.2.290.0000.01616.78
7.2.250.0030.00915.24
7.2.240.0020.01315.12
7.2.230.0050.01015.00
7.2.220.0070.00715.10
7.2.210.0050.01214.86
7.2.200.0040.01115.02
7.2.190.0030.01215.10
7.2.180.0080.00714.90
7.2.170.0080.01014.90
7.2.160.0040.01014.90
7.2.150.0090.00816.25
7.2.140.0070.00816.36
7.2.130.0100.00816.19
7.2.120.0100.00616.34
7.2.110.0110.00716.20
7.2.100.0080.00816.23
7.2.90.0110.01016.31
7.2.80.0100.00816.24
7.2.70.0130.00416.10
7.2.60.0180.00616.17
7.2.50.0070.01016.29
7.2.40.0120.00716.19
7.2.30.0090.01016.23
7.2.20.0080.00916.34
7.2.10.0100.00816.27
7.2.00.0130.00316.24
7.1.330.0100.00615.56
7.1.320.0100.00515.84
7.1.310.0100.00715.04
7.1.300.0110.00715.00
7.1.290.0290.01215.02
7.1.280.0110.00615.08
7.1.270.0050.01015.13
7.1.260.0080.00815.18
7.1.250.0090.00815.08
7.1.240.0040.00715.64
7.1.230.0030.01015.64
7.1.220.0090.00615.95
7.1.210.0110.00415.75
7.1.200.0060.00615.74
7.1.190.0080.00415.69
7.1.180.0050.00315.81
7.1.170.0060.00915.73
7.1.160.0030.00916.00
7.1.150.0090.00615.80
7.1.140.0000.01115.57
7.1.130.0030.01315.76
7.1.120.0070.00715.75
7.1.110.0100.00715.85
7.1.100.0070.00715.78
7.1.90.0000.01315.96
7.1.80.0060.00315.97
7.1.70.0030.00615.63
7.1.60.0030.00615.87
7.1.50.0030.00915.63
7.1.40.0030.00715.84
7.1.30.0070.00715.79
7.1.20.0000.01115.87
7.1.10.0060.00915.74
7.1.00.0000.01015.53

preferences:
27.92 ms | 401 KiB | 5 Q