3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Input: $_GET['inicio'] = '7'; $_GET['final'] = '45'; $_GET['incremento'] = '4'; // Trata o input: $inicio = $_GET['inicio'] ?? 0; $inicio = is_numeric($inicio) ? $inicio : 0; $final = $_GET['final'] ?? 0; $final = is_numeric($final) ? $final : 0; $incremento = $_GET['incremento'] ?? 1; $incremento = is_numeric($incremento) && $incremento != 0 ? $incremento : 1; // Faz o mesmo que o `while`: echo implode(' ', range($inicio, $final, $incremento));

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.4.10.0000.00917.65
8.3.140.0080.00019.18
8.3.130.0000.00918.41
8.3.120.0030.00621.02
8.3.110.0040.00420.94
8.3.100.0080.00016.68
8.3.90.0000.00726.77
8.3.80.0090.00016.63
8.3.70.0180.00416.75
8.3.60.0120.00918.56
8.3.50.0120.00721.14
8.3.40.0090.00618.88
8.3.30.0060.00918.71
8.3.20.0080.00020.21
8.3.10.0070.00021.78
8.3.00.0040.00422.44
8.2.260.0140.00416.69
8.2.250.0050.00216.49
8.2.240.0060.00917.07
8.2.230.0030.00622.58
8.2.220.0040.00424.06
8.2.210.0100.00026.77
8.2.200.0090.00016.75
8.2.190.0140.00716.58
8.2.180.0110.00425.92
8.2.170.0150.00018.96
8.2.160.0110.00422.96
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0030.01026.16
8.2.120.0070.00021.05
8.2.110.0110.00721.06
8.2.100.0130.00317.91
8.2.90.0030.00619.22
8.2.80.0030.00517.97
8.2.70.0040.00417.75
8.2.60.0000.00917.93
8.2.50.0080.00018.07
8.2.40.0030.00518.29
8.2.30.0020.00518.08
8.2.20.0080.00018.13
8.2.10.0000.00718.01
8.2.00.0070.00018.27
8.1.300.0030.00618.44
8.1.290.0030.00630.84
8.1.280.0140.00025.92
8.1.270.0040.00418.70
8.1.260.0000.00728.09
8.1.250.0040.00428.09
8.1.240.0070.00322.62
8.1.230.0040.00817.70
8.1.220.0030.00517.91
8.1.210.0000.00818.77
8.1.200.0030.00617.47
8.1.190.0040.00417.35
8.1.180.0030.00618.10
8.1.170.0000.00918.50
8.1.160.0000.00818.82
8.1.150.0040.00420.11
8.1.140.0000.00719.59
8.1.130.0040.00418.80
8.1.120.0000.00717.46
8.1.110.0020.00517.34
8.1.100.0040.00417.34
8.1.90.0000.00717.41
8.1.80.0090.00017.34
8.1.70.0070.00017.37
8.1.60.0040.00417.53
8.1.50.0040.00417.49
8.1.40.0000.00817.54
8.1.30.0050.00317.47
8.1.20.0060.00317.68
8.1.10.0040.00417.53
8.1.00.0040.00417.46
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0050.00318.47
8.0.270.0000.00717.23
8.0.260.0080.00019.06
8.0.250.0030.00316.92
8.0.240.0110.00016.90
8.0.230.0000.00817.00
8.0.220.0030.00316.89
8.0.210.0040.00416.87
8.0.200.0000.00716.91
8.0.190.0040.00416.83
8.0.180.0030.00316.90
8.0.170.0100.00016.91
8.0.160.0040.00416.98
8.0.150.0000.00716.87
8.0.140.0040.00316.73
8.0.130.0000.00913.23
8.0.120.0030.00516.88
8.0.110.0040.00416.83
8.0.100.0090.00016.75
8.0.90.0000.00816.92
8.0.80.0030.01216.87
8.0.70.0000.00816.82
8.0.60.0020.00516.94
8.0.50.0000.00816.75
8.0.30.0170.00317.16
8.0.20.0090.01217.40
8.0.10.0040.00416.87
8.0.00.0090.01016.80
7.4.330.0000.00515.55
7.4.320.0000.00816.58
7.4.300.0000.00616.59
7.4.290.0040.00416.42
7.4.280.0030.00516.49
7.4.270.0000.00716.50
7.4.260.0030.00616.46
7.4.250.0000.00716.38
7.4.240.0040.00416.45
7.4.230.0070.00016.23
7.4.220.0130.01316.55
7.4.210.0030.01016.52
7.4.200.0030.00316.47
7.4.160.0130.00516.38
7.4.150.0090.00917.40
7.4.140.0100.01017.86
7.4.130.0110.00816.50
7.4.120.0100.01016.44
7.4.110.0000.01716.48
7.4.100.0060.01016.36
7.4.90.0120.00316.55
7.4.80.0100.00619.39
7.4.70.0070.01016.60
7.4.60.0100.00716.44
7.4.50.0030.01416.23
7.4.40.0070.01016.45
7.4.30.0070.01416.37
7.4.00.0040.01115.04
7.3.330.0050.00013.00
7.3.320.0050.00013.23
7.3.310.0040.00416.22
7.3.300.0070.00016.21
7.3.290.0100.00316.20
7.3.280.0110.00516.25
7.3.270.0090.00917.40
7.3.260.0080.01116.51
7.3.240.0130.00616.38
7.3.230.0080.00816.34
7.3.210.0060.01016.46
7.3.200.0030.01316.52
7.3.190.0000.01516.72
7.3.180.0030.01216.25
7.3.170.0090.00916.35
7.3.160.0070.01016.31
7.2.330.0100.00716.68
7.2.320.0090.01216.52
7.2.310.0130.01016.48
7.2.300.0030.01516.68
7.2.290.0110.00916.77
7.2.60.0030.01216.90
7.2.00.0030.01019.21
7.1.200.0090.00615.57
7.1.70.0070.00316.92
7.1.60.0040.00717.13
7.1.50.0000.01116.86
7.1.40.0060.00916.59
7.1.30.0070.00716.68
7.1.20.0080.00416.72
7.1.10.0030.00616.39
7.1.00.0040.01116.75
7.0.200.0000.01116.66
7.0.190.0000.00816.82
7.0.180.0000.01016.20
7.0.170.0000.00716.44
7.0.160.0040.00416.39
7.0.150.0040.00416.36
7.0.140.0000.00816.34
7.0.130.0070.01016.51
7.0.120.0000.01516.59
7.0.110.0000.01616.35
7.0.100.0070.01016.40
7.0.90.0060.01016.55
7.0.80.0000.01116.53
7.0.70.0090.00016.32
7.0.60.0050.00216.52
7.0.50.0040.00416.59
7.0.40.0030.00615.22
7.0.30.0040.01214.93
7.0.20.0000.00914.89
7.0.10.0030.00614.95
7.0.00.0040.00414.89

preferences:
15.53 ms | 403 KiB | 5 Q