3v4l.org

run code in 300+ PHP versions simultaneously
<?php $retornar = 2; //$_GET['retornar']; $ccs = array("1", "2"); if($retornar > count($ccs)){ die("Quantidade indisponivel"); } if($retornar == 0){ echo $ccs[0]; }else{ 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.4.10.0130.00317.78
8.3.140.0180.00018.96
8.3.130.0040.00716.59
8.3.120.0090.00020.69
8.3.110.0150.00420.94
8.3.100.0030.00616.37
8.3.90.0060.01016.38
8.3.80.0060.00318.56
8.3.70.0070.01116.50
8.3.60.0100.00718.43
8.3.50.0040.01317.09
8.3.40.0070.01718.50
8.3.30.0040.01118.55
8.3.20.0050.00318.73
8.3.10.0000.00819.41
8.3.00.0040.00423.48
8.2.250.0060.00316.42
8.2.240.0070.00318.93
8.2.230.0040.00422.58
8.2.220.0040.00424.06
8.2.210.0090.00926.77
8.2.200.0050.00518.28
8.2.190.0150.00616.58
8.2.180.0190.00318.29
8.2.170.0140.00322.96
8.2.160.0120.00320.34
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0030.00526.16
8.2.120.0070.00020.96
8.2.110.0100.01022.14
8.2.100.0040.00717.78
8.2.90.0050.00220.61
8.2.80.0000.00817.63
8.2.70.0040.00417.50
8.2.60.0040.00417.93
8.2.50.0030.00818.07
8.2.40.0040.00419.78
8.2.30.0040.00417.75
8.2.20.0040.00418.00
8.2.10.0080.00017.97
8.2.00.0020.00519.50
8.1.300.0060.00320.10
8.1.290.0030.00718.88
8.1.280.0140.00725.92
8.1.270.0060.00321.93
8.1.260.0040.00426.35
8.1.250.0090.00628.09
8.1.240.0060.00319.21
8.1.230.0090.00322.82
8.1.220.0080.00017.74
8.1.210.0110.00018.89
8.1.200.0060.00317.23
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0060.00318.91
8.1.160.0040.00419.02
8.1.150.0040.00418.89
8.1.140.0000.00717.70
8.1.130.0000.00719.00
8.1.120.0090.00017.38
8.1.110.0100.00017.34
8.1.100.0040.00417.35
8.1.90.0040.00417.36
8.1.80.0040.00417.36
8.1.70.0000.00717.48
8.1.60.0040.00417.62
8.1.50.0060.00317.42
8.1.40.0050.00317.51
8.1.30.0030.01017.47
8.1.20.0040.00417.62
8.1.10.0040.00417.59
8.1.00.0030.00517.48
8.0.300.0070.00319.86
8.0.290.0070.00016.63
8.0.280.0030.00318.57
8.0.270.0070.00018.05
8.0.260.0040.00417.22
8.0.250.0000.00716.96
8.0.240.0030.00316.98
8.0.230.0050.00316.95
8.0.220.0000.00816.81
8.0.210.0030.00316.78
8.0.200.0030.00316.86
8.0.190.0050.00316.93
8.0.180.0000.00916.77
8.0.170.0090.00016.91
8.0.160.0000.00716.79
8.0.150.0030.00516.88
8.0.140.0080.00016.91
8.0.130.0030.00313.38
8.0.120.0000.00816.70
8.0.110.0040.00416.85
8.0.100.0040.00416.85
8.0.90.0070.00016.98
8.0.80.0040.01116.84
8.0.70.0070.00016.78
8.0.60.0040.00416.76
8.0.50.0020.00516.76
8.0.30.0070.01117.08
8.0.20.0150.00317.43
8.0.10.0070.00016.88
8.0.00.0050.01216.71
7.4.330.0000.00515.55
7.4.320.0030.00316.43
7.4.300.0030.00316.43
7.4.290.0000.00716.50
7.4.280.0000.00816.59
7.4.270.0030.00316.67
7.4.260.0000.00716.49
7.4.250.0000.00716.46
7.4.240.0000.00816.60
7.4.230.0000.00716.39
7.4.220.0040.00416.70
7.4.210.0100.00616.54
7.4.200.0000.00816.53
7.4.140.0130.00617.86
7.4.130.0110.00616.43
7.4.120.0090.01016.51
7.4.110.0100.00716.51
7.4.100.0100.00616.48
7.4.90.0100.00716.61
7.4.80.0200.00319.39
7.4.70.0110.01116.58
7.4.60.0030.01316.49
7.4.50.0110.00316.41
7.4.40.0120.00816.37
7.4.00.0050.01114.74
7.3.330.0050.00013.02
7.3.320.0050.00013.14
7.3.310.0070.00016.28
7.3.300.0000.00716.26
7.3.290.0090.00916.27
7.3.280.0100.00616.24
7.3.260.0120.00616.28
7.3.240.0110.00716.43
7.3.230.0130.00516.54
7.3.210.0090.00916.31
7.3.200.0120.01216.42
7.3.190.0070.01116.30
7.3.180.0040.01216.57
7.3.170.0040.01216.35
7.3.160.0060.01016.36
7.3.120.0040.01414.55
7.3.110.0090.00614.74
7.3.100.0070.01014.88
7.3.90.0080.01014.66
7.3.80.0000.01515.04
7.3.70.0060.00914.86
7.3.60.0030.01214.69
7.3.50.0040.01214.61
7.3.40.0050.00514.96
7.3.30.0070.00414.88
7.3.20.0040.00416.74
7.3.10.0040.01116.61
7.3.00.0130.00316.65
7.2.330.0110.00716.69
7.2.320.0110.01116.86
7.2.310.0120.00816.37
7.2.300.0040.01816.56
7.2.290.0110.01316.68
7.2.250.0060.01315.28
7.2.240.0070.01115.29
7.2.230.0040.01214.99
7.2.220.0000.01515.35
7.2.210.0070.00715.25
7.2.200.0040.01415.24
7.2.190.0060.00614.94
7.2.180.0130.00315.01
7.2.170.0070.01114.93
7.2.60.1270.00515.01
7.2.50.0100.00915.19
7.2.40.1500.00915.40
7.2.30.1780.00915.52
7.2.20.0550.00815.39
7.2.10.1730.00415.73
7.2.00.1450.00915.32
7.1.330.0060.01015.71
7.1.320.0110.00715.77
7.1.310.0030.01415.89
7.1.300.0060.00615.80
7.1.290.0040.01515.66
7.1.280.0070.01115.79
7.1.270.0060.00615.79
7.1.260.0030.00915.80
7.1.200.0060.00615.73
7.1.170.2130.01213.86
7.1.160.1070.01216.76
7.1.150.2410.01116.69
7.1.140.2190.00916.83
7.1.130.1440.01217.05
7.1.120.1410.00817.07
7.1.110.1440.00916.32
7.1.100.1670.00816.37
7.1.90.1370.01216.27
7.1.80.1240.00915.84
7.1.70.1300.01015.08
7.1.60.1440.01233.33
7.1.50.1350.00933.06
7.1.40.1330.01232.66
7.1.30.1480.01232.63
7.1.20.1330.01132.73
7.1.10.1290.00714.70
7.1.00.2310.01014.77

preferences:
51.61 ms | 403 KiB | 5 Q