3v4l.org

run code in 300+ PHP versions simultaneously
<?php $retornar = 5; //(int)$_GET['retornar']; $ccs = array("1", "2"); //código novo (já que você não postou a linha referente ao array) for($i = 0; $i < $retornar; $i++) { echo $ccs[$i]; }

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.130.0040.00418.69
8.3.120.0110.00720.65
8.3.110.0040.00416.78
8.3.100.0040.00422.02
8.3.90.0160.00016.75
8.3.80.0090.00318.68
8.3.70.0040.01516.38
8.3.60.0110.00418.56
8.3.50.0140.00517.04
8.3.40.0160.00318.81
8.3.30.0070.00718.79
8.3.20.0040.00418.80
8.3.10.0050.00319.49
8.3.00.0050.00323.63
8.2.250.0040.00416.75
8.2.240.0100.00617.05
8.2.230.0060.00320.94
8.2.220.0040.00824.06
8.2.210.0040.00426.77
8.2.200.0110.00018.27
8.2.190.0100.01016.75
8.2.180.0090.00918.66
8.2.170.0000.01622.96
8.2.160.0080.00520.38
8.2.150.0000.00824.18
8.2.140.0070.00024.66
8.2.130.0000.00819.83
8.2.120.0000.00726.35
8.2.110.0060.00320.98
8.2.100.0070.00418.03
8.2.90.0090.00017.74
8.2.80.0030.00518.76
8.2.70.0050.00317.63
8.2.60.0040.00417.63
8.2.50.0080.00018.10
8.2.40.0000.00719.33
8.2.30.0070.00019.61
8.2.20.0050.00318.11
8.2.10.0070.00017.88
8.2.00.0080.00019.24
8.1.300.0040.00418.52
8.1.290.0060.00318.88
8.1.280.0110.01125.92
8.1.270.0050.00320.32
8.1.260.0030.00626.35
8.1.250.0060.00328.09
8.1.240.0100.00022.13
8.1.230.0080.00421.06
8.1.220.0000.00818.53
8.1.210.0030.00618.77
8.1.200.0050.00317.23
8.1.190.0080.00417.00
8.1.180.0080.00018.10
8.1.170.0040.00418.53
8.1.160.0000.00718.81
8.1.150.0030.00518.83
8.1.140.0040.00417.57
8.1.130.0070.00018.98
8.1.120.0100.00017.41
8.1.110.0060.00417.41
8.1.100.0030.00317.43
8.1.90.0040.00417.32
8.1.80.0000.00817.40
8.1.70.0000.00717.28
8.1.60.0030.00617.45
8.1.50.0090.00317.48
8.1.40.0030.00517.38
8.1.30.0070.00417.49
8.1.20.0000.00817.59
8.1.10.0040.00417.54
8.1.00.0040.00417.47
8.0.300.0040.00419.98
8.0.290.0040.00716.88
8.0.280.0000.00718.35
8.0.270.0080.00017.26
8.0.260.0090.00017.30
8.0.250.0000.00717.05
8.0.240.0030.00317.04
8.0.230.0050.00316.84
8.0.220.0100.00016.93
8.0.210.0030.00316.89
8.0.200.0030.00316.84
8.0.190.0050.00216.97
8.0.180.0000.00816.74
8.0.170.0030.00516.80
8.0.160.0030.00316.80
8.0.150.0060.00316.86
8.0.140.0070.00016.91
8.0.130.0030.00313.40
8.0.120.0040.00416.90
8.0.110.0000.00816.76
8.0.100.0050.00316.96
8.0.90.0000.00716.73
8.0.80.0090.00816.87
8.0.70.0040.00416.95
8.0.60.0000.00816.84
8.0.50.0000.00716.71
8.0.30.0110.00717.06
8.0.20.0150.00417.40
8.0.10.0000.00816.85
8.0.00.0110.00516.77
7.4.330.0000.00515.55
7.4.320.0030.00316.56
7.4.300.0020.00516.44
7.4.290.0000.00716.47
7.4.280.0030.00516.41
7.4.270.0000.00716.43
7.4.260.0050.00216.49
7.4.250.0000.00816.48
7.4.240.0030.00316.39
7.4.230.0040.00416.62
7.4.220.0020.00516.54
7.4.210.0070.00816.43
7.4.200.0040.00416.46
7.4.160.0100.00816.57
7.4.140.0110.00917.86
7.4.130.0150.00716.61
7.4.120.0130.00816.43
7.4.110.0070.01016.54
7.4.100.0030.01316.57
7.4.90.0110.00816.55
7.4.80.0100.01419.39
7.4.70.0080.01116.41
7.4.60.0130.00316.43
7.4.50.0030.01216.38
7.4.40.0110.01016.36
7.4.00.0080.00814.87
7.3.330.0000.00513.14
7.3.320.0000.00613.23
7.3.310.0000.00716.44
7.3.300.0000.00716.29
7.3.290.0000.00716.19
7.3.280.0070.01016.34
7.3.260.0120.01016.47
7.3.240.0110.00716.52
7.3.230.0120.00616.47
7.3.210.0060.01216.49
7.3.200.0140.00316.48
7.3.190.0060.00916.33
7.3.180.0070.01316.49
7.3.170.0070.01016.52
7.3.160.0080.00816.47
7.3.120.0110.00714.84
7.3.110.0100.00615.04
7.3.100.0100.00314.98
7.3.90.0080.00614.92
7.3.80.0000.01414.89
7.3.70.0000.01514.77
7.3.60.0090.00314.61
7.3.50.0030.01014.91
7.3.40.0070.00714.90
7.3.30.0070.00714.93
7.3.20.0040.00716.55
7.3.10.0040.00816.48
7.3.00.0030.01016.68
7.2.330.0120.01216.82
7.2.320.0090.01216.73
7.2.310.0150.00716.70
7.2.300.0050.01116.71
7.2.290.0070.01516.74
7.2.250.0040.01515.09
7.2.240.0060.00615.04
7.2.230.0160.00015.11
7.2.220.0120.00315.15
7.2.210.0110.00315.21
7.2.200.0000.01015.24
7.2.190.0000.01214.92
7.2.180.0120.00314.63
7.2.170.0040.00814.89
7.2.60.1710.00914.86
7.2.50.1560.00715.09
7.2.40.1640.00815.73
7.2.30.1550.00715.71
7.2.20.1550.00915.55
7.2.10.2380.01415.55
7.2.00.1550.00715.59
7.1.330.0000.01415.54
7.1.320.0040.01115.82
7.1.310.0060.00615.95
7.1.300.0030.00615.61
7.1.290.0040.00815.74
7.1.280.0040.01115.61
7.1.270.0000.01215.86
7.1.260.0060.00615.79
7.1.200.0030.00515.93
7.1.170.1690.00713.60
7.1.160.2140.00816.86
7.1.150.1490.01016.76
7.1.140.2370.00916.45
7.1.130.2010.01217.03
7.1.120.1470.00716.87
7.1.110.1780.00816.09
7.1.100.1980.00616.20
7.1.90.1980.01216.15
7.1.80.1830.00816.31
7.1.70.1930.00715.37
7.1.60.2150.01533.13
7.1.50.2280.01432.80
7.1.40.2670.01432.55
7.1.30.2670.00932.39
7.1.20.2700.01532.66
7.1.10.2350.01114.54
7.1.00.2380.01314.63

preferences:
22.78 ms | 403 KiB | 5 Q