3v4l.org

run code in 300+ PHP versions simultaneously
<?php $can_set = true; if (!function_exists('set_time_limit')) $can_set = false; // Are we able to use the function $current_time_limit = ini_get('max_execution_time'); @set_time_limit(123); $new_time_limit = ini_get('max_execution_time'); @set_time_limit($current_time_limit); if (empty($current_time_limit) || $current_time_limit === $new_time_limit) $can_set = false; echo $can_set;

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.0100.00716.38
8.3.50.0130.00821.92
8.3.40.0080.00618.66
8.3.30.0100.00318.88
8.3.20.0050.00320.16
8.3.10.0040.00421.78
8.3.00.0000.00719.13
8.2.180.0090.00916.38
8.2.170.0140.00022.96
8.2.160.0120.00320.44
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0030.00526.16
8.2.120.0030.00519.66
8.2.110.0080.00322.07
8.2.100.0000.01117.84
8.2.90.0060.00317.75
8.2.80.0000.00919.28
8.2.70.0040.00417.91
8.2.60.0030.00617.91
8.2.50.0000.00818.10
8.2.40.0040.00420.41
8.2.30.0000.00817.98
8.2.20.0080.00017.78
8.2.10.0040.00418.11
8.2.00.0000.00717.59
8.1.280.0070.00725.92
8.1.270.0040.00418.71
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0080.00022.07
8.1.230.0070.00420.89
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0040.00417.22
8.1.190.0060.00317.22
8.1.180.0040.00418.10
8.1.170.0030.00618.61
8.1.160.0000.00722.13
8.1.150.0040.00418.73
8.1.140.0030.00619.23
8.1.130.0030.00617.83
8.1.120.0040.00417.45
8.1.110.0000.00817.34
8.1.100.0070.00017.44
8.1.90.0000.00817.45
8.1.80.0070.00017.48
8.1.70.0030.00317.36
8.1.60.0030.00917.57
8.1.50.0040.00417.34
8.1.40.0040.00417.46
8.1.30.0050.00317.61
8.1.20.0050.00517.60
8.1.10.0040.00417.46
8.1.00.0000.00817.34
8.0.300.0040.00420.02
8.0.290.0050.00316.75
8.0.280.0070.00018.30
8.0.270.0070.00017.24
8.0.260.0000.00617.25
8.0.250.0070.00016.96
8.0.240.0080.00016.95
8.0.230.0000.00716.93
8.0.220.0030.00316.80
8.0.210.0030.00316.91
8.0.200.0050.00316.96
8.0.190.0080.00016.87
8.0.180.0000.00716.91
8.0.170.0040.00416.91
8.0.160.0000.00716.81
8.0.150.0070.00016.90
8.0.140.0070.00016.81
8.0.130.0060.00013.32
8.0.120.0050.00316.79
8.0.110.0040.00416.86
8.0.100.0040.00416.78
8.0.90.0040.00416.95
8.0.80.0040.01116.76
8.0.70.0050.00216.69
8.0.60.0000.00816.79
8.0.50.0000.00716.71
8.0.30.0100.01417.18
8.0.20.0110.00717.40
8.0.10.0040.00416.87
8.0.00.0080.00916.74
7.4.330.0060.00015.03
7.4.320.0060.00016.57
7.4.300.0020.00516.59
7.4.290.0070.00016.59
7.4.280.0070.00016.50
7.4.270.0030.00316.58
7.4.260.0050.00516.46
7.4.250.0050.00316.35
7.4.240.0020.00616.54
7.4.230.0030.00316.47
7.4.220.0140.00716.40
7.4.210.0000.01416.54
7.4.200.0000.00816.37
7.4.160.0030.01316.34
7.4.150.0070.01117.40
7.4.140.0110.01017.86
7.4.130.0080.01016.42
7.4.120.0130.00716.48
7.4.110.0070.01016.35
7.4.100.0140.00416.59
7.4.90.0070.01016.63
7.4.80.0070.01319.39
7.4.70.0060.00916.54
7.4.60.0100.00716.44
7.4.50.0040.00416.27
7.4.40.0110.00716.24
7.4.30.0060.01616.36
7.4.00.0060.00915.10
7.3.330.0020.00213.07
7.3.320.0000.00512.95
7.3.310.0000.00816.23
7.3.300.0030.00316.04
7.3.290.0110.00516.23
7.3.280.0110.00616.16
7.3.270.0110.00717.40
7.3.260.0090.01516.45
7.3.250.0130.00716.26
7.3.240.0110.00616.52
7.3.230.0110.00716.46
7.3.210.0100.01016.35
7.3.200.0030.01319.39
7.3.190.0030.01416.50
7.3.180.0070.01416.55
7.3.170.0120.00916.38
7.3.160.0090.00916.30
7.2.330.0060.01016.66
7.2.320.0070.01016.48
7.2.310.0160.00616.43
7.2.300.0030.01316.45
7.2.290.0030.01416.72
7.2.00.0030.00919.41
7.1.200.0080.00415.86
7.1.100.0000.01418.05
7.1.70.0030.00617.03
7.1.60.0100.01419.46
7.1.50.0030.00916.90
7.1.00.0000.08022.45
7.0.200.0090.00315.00
7.0.140.0000.06021.95
7.0.60.0200.06719.89
7.0.50.0030.04317.89
7.0.40.0030.07020.07
7.0.30.0330.06720.23
7.0.20.0270.08320.01
7.0.10.0070.04020.21
7.0.00.0030.09020.16
5.6.280.0070.07021.09
5.6.210.0170.04020.60
5.6.200.0230.06318.18
5.6.190.0070.08020.27
5.6.180.0530.06720.41
5.6.170.0230.07720.41
5.6.160.0070.08320.38
5.6.150.0070.06018.22
5.6.140.0130.07718.07
5.6.130.0030.07318.16
5.6.120.0030.05021.17
5.6.110.0030.07720.98
5.6.100.0100.08020.99
5.6.90.0170.07020.99
5.6.80.0130.05020.38
5.5.350.0300.07320.40
5.5.340.0070.08018.01
5.5.330.0100.04020.21
5.5.320.0030.07020.28
5.5.310.0370.08020.33
5.5.300.0070.07018.01
5.5.290.0030.08317.89
5.5.280.0170.07020.76
5.5.270.0130.08020.95
5.5.260.0000.04320.64
5.5.250.0070.03720.68
5.5.240.0000.08320.25
5.4.450.0300.06019.43
5.4.440.0630.06319.32
5.4.430.0030.06019.48
5.4.420.0100.05319.52
5.4.410.0230.04019.42
5.4.400.0200.06719.33
5.4.390.0330.04318.75
5.4.380.0200.06018.48
5.4.370.0130.07318.65
5.4.360.0070.06718.68
5.4.350.0230.05718.70
5.4.340.0170.06318.52
5.4.320.0200.05718.65
5.4.310.0200.06718.69
5.4.300.0070.07018.69
5.4.290.0200.05018.55
5.4.280.0230.06318.65
5.4.270.0300.04318.68
5.4.260.0200.06018.64
5.4.250.0270.05718.51
5.4.240.0370.06318.66
5.4.230.0270.07318.59
5.4.220.0330.06718.69
5.4.210.0330.06018.64
5.4.200.0200.06316.57
5.4.190.0230.05018.46
5.4.180.0100.07318.63
5.4.170.0170.06318.48
5.4.160.0170.05718.67
5.4.150.0330.04018.63
5.4.140.0370.03716.25
5.4.130.0370.05716.16
5.4.120.0230.05016.18
5.4.110.0130.05016.31
5.4.100.0270.05016.08
5.4.90.0270.05316.25
5.4.80.0230.04716.27
5.4.70.0270.06316.32
5.4.60.0200.06716.22
5.4.50.0130.05316.27
5.4.40.0000.07016.11
5.4.30.0170.06716.15
5.4.20.0170.05316.12
5.4.10.0200.04716.28
5.4.00.0230.06315.67
5.3.290.0330.04314.57
5.3.280.0130.06014.57
5.3.270.0270.05314.60
5.3.260.0170.05714.51
5.3.250.0130.05714.52
5.3.240.0130.06014.58
5.3.230.0170.05314.58
5.3.220.0170.07314.57
5.3.210.0230.06714.51
5.3.200.0100.06014.64
5.3.190.0170.06014.56
5.3.180.0270.06314.57
5.3.170.0130.05714.54
5.3.160.0200.05014.55
5.3.150.0200.05314.53
5.3.140.0170.06014.52
5.3.130.0270.06014.60
5.3.120.0200.06014.51
5.3.110.0170.08314.58
5.3.100.0230.06014.11
5.3.90.0330.05314.01
5.3.80.0370.06013.93
5.3.70.0130.06014.10
5.3.60.0170.05713.95
5.3.50.0200.05314.04
5.3.40.0200.04713.86
5.3.30.0230.05014.00
5.3.20.0270.04713.60
5.3.10.0270.04313.75
5.3.00.0270.05313.61
5.2.170.0100.04711.17
5.2.160.0100.05011.05
5.2.150.0070.05011.09
5.2.140.0230.03711.20
5.2.130.0170.04711.03
5.2.120.0230.04311.08
5.2.110.0200.05011.24
5.2.100.0170.05711.06
5.2.90.0070.05311.14
5.2.80.0070.05311.05
5.2.70.0330.04011.10
5.2.60.0130.04711.18
5.2.50.0170.04311.05
5.2.40.0270.04011.03
5.2.30.0130.04010.90
5.2.20.0200.03710.94
5.2.10.0200.04310.87
5.2.00.0200.04310.76
5.1.60.0130.0339.99
5.1.50.0170.04310.06
5.1.40.0170.03710.09
5.1.30.0100.04310.36
5.1.20.0100.04310.36
5.1.10.0030.04710.10
5.1.00.0070.04710.25
5.0.50.0070.0408.72
5.0.40.0030.0338.45
5.0.30.0170.0438.20
5.0.20.0030.0408.38
5.0.10.0070.0408.28
5.0.00.0100.0478.14
4.4.90.0070.0205.90
4.4.80.0000.0305.90
4.4.70.0000.0335.89
4.4.60.0070.0275.93
4.4.50.0130.0235.82
4.4.40.0070.0375.89
4.4.30.0100.0205.82
4.4.20.0130.0175.88
4.4.10.0130.0175.93
4.4.00.0030.0405.97
4.3.110.0030.0275.84
4.3.100.0100.0275.87
4.3.90.0070.0235.77
4.3.80.0130.0335.79
4.3.70.0100.0205.79
4.3.60.0070.0235.86
4.3.50.0130.0275.82
4.3.40.0070.0335.75
4.3.30.0070.0204.59
4.3.20.0070.0234.54
4.3.10.0030.0234.50
4.3.00.0100.0179.24

preferences:
41.93 ms | 401 KiB | 5 Q