3v4l.org

run code in 300+ PHP versions simultaneously
<?php header("Content-Type: text/plain; charset=utf-8"); mb_internal_encoding('utf-8'); $total = []; $skip = 5; For ($i=1; $i<31; $i++){ $total[$i-1]=$i; } $schet=0; while (count($total)>= $skip) { foreach ($total as $key => $value) { $schet+=1; If ($schet==5) { unset($total[$key]); $schet=0; } } } echo "Выигрышные места: "; foreach ($total as $key => $value) { echo "$value, "; } ?>

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.120.0110.00920.26
8.4.110.0120.00822.51
8.4.100.0130.00717.84
8.4.90.0120.00822.11
8.4.80.0060.00517.80
8.4.70.0110.00918.09
8.4.60.0080.01220.66
8.4.50.0090.01120.19
8.4.40.0100.00619.44
8.4.30.0060.01320.58
8.4.20.0100.01319.52
8.4.10.0100.01019.48
8.3.250.0140.00618.89
8.3.240.0100.01116.49
8.3.230.0130.00616.52
8.3.220.0080.00717.18
8.3.210.0080.00921.07
8.3.200.0030.00516.91
8.3.190.0120.00817.16
8.3.180.0150.00316.38
8.3.170.0090.00917.16
8.3.160.0090.00618.51
8.3.150.0070.00718.53
8.3.140.0050.00317.36
8.3.130.0090.00018.49
8.3.120.0030.00618.98
8.3.110.0040.00720.94
8.3.100.0070.00324.06
8.3.90.0080.00026.77
8.3.80.0090.00017.97
8.3.70.0170.00316.50
8.3.60.0110.01118.55
8.3.50.0110.01021.92
8.3.40.0160.00618.79
8.3.30.0190.00318.74
8.3.20.0110.00720.14
8.3.10.0040.00420.20
8.3.00.0090.00921.61
8.2.290.0030.00420.67
8.2.280.0070.00418.18
8.2.270.0070.01117.02
8.2.260.0040.01116.56
8.2.250.0000.00816.62
8.2.240.0090.00918.99
8.2.230.0090.00022.58
8.2.220.0090.00037.54
8.2.210.0110.01126.77
8.2.200.0040.00416.63
8.2.190.0070.01016.63
8.2.180.0110.01118.36
8.2.170.0090.00622.96
8.2.160.0130.01020.31
8.2.150.0120.00624.18
8.2.140.0040.00424.66
8.2.130.0040.00422.25
8.2.120.0060.00326.16
8.2.110.0090.00021.00
8.2.100.0000.01117.78
8.2.90.0040.00817.65
8.2.80.0030.00517.97
8.2.70.0040.00418.05
8.2.60.0050.00218.22
8.2.50.0000.00719.34
8.2.40.0030.00621.19
8.2.30.0050.00319.33
8.2.20.0040.00418.14
8.2.10.0000.00818.14
8.2.00.0040.00418.24
8.1.330.0130.00622.22
8.1.320.0120.00716.10
8.1.310.0060.00818.45
8.1.300.0120.00419.78
8.1.290.0030.00630.84
8.1.280.0110.00725.92
8.1.270.0050.00323.99
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0030.00622.16
8.1.230.0110.00022.81
8.1.220.0000.00917.77
8.1.210.0040.00418.88
8.1.200.0070.00417.35
8.1.190.0090.00017.48
8.1.180.0090.00018.10
8.1.170.0050.00318.74
8.1.160.0070.00018.97
8.1.150.0040.00420.27
8.1.140.0070.00019.59
8.1.130.0030.00319.08
8.1.120.0040.00417.51
8.1.110.0040.00417.47
8.1.100.0040.00417.42
8.1.90.0000.00717.39
8.1.80.0040.00417.49
8.1.70.0000.00717.54
8.1.60.0040.00417.53
8.1.50.0000.00717.55
8.1.40.0040.00417.55
8.1.30.0000.00817.68
8.1.20.0000.00717.67
8.1.10.0000.00717.53
8.1.00.0040.00817.36
8.0.300.0070.00019.67
8.0.290.0050.00216.75
8.0.280.0050.00218.51
8.0.270.0070.00017.22
8.0.260.0090.00017.15
8.0.250.0000.00716.92
8.0.240.0030.00716.94
8.0.230.0000.00716.98
8.0.220.0000.00716.80
8.0.210.0030.00316.89
8.0.200.0000.00716.98
8.0.190.0040.00416.86
8.0.180.0000.00716.91
8.0.170.0080.00016.89
8.0.160.0040.00416.96
8.0.150.0040.00416.88
8.0.140.0040.00416.77
8.0.130.0030.00313.41
8.0.120.0040.00416.88
8.0.110.0000.00716.95
8.0.100.0000.00716.95
8.0.90.0050.00316.82
8.0.80.0030.01616.80
8.0.70.0040.00416.88
8.0.60.0040.00416.79
8.0.50.0070.00016.79
8.0.30.0130.00417.09
8.0.20.0100.01417.40
8.0.10.0040.00416.98
8.0.00.0080.00816.66
7.4.330.0050.00015.55
7.4.320.0030.00316.43
7.4.300.0000.00716.54
7.4.290.0060.00016.48
7.4.280.0020.00516.61
7.4.270.0070.00016.61
7.4.260.0080.00016.64
7.4.250.0040.00416.58
7.4.240.0070.00016.63
7.4.230.0000.00716.65
7.4.220.0060.01216.43
7.4.210.0090.00616.63
7.4.200.0000.00716.53
7.4.160.0080.00816.65
7.4.150.0060.01217.40
7.4.140.0160.00717.86
7.4.130.0080.01016.54
7.4.120.0090.00816.52
7.4.110.0090.00916.45
7.4.100.0100.01016.60
7.4.90.0070.01116.51
7.4.80.0100.00719.39
7.4.70.0140.00316.45
7.4.60.0150.00016.68
7.4.50.0000.01216.67
7.4.40.0030.01216.64
7.4.30.0100.00716.59
7.4.00.0050.00914.93
7.3.330.0020.00213.04
7.3.320.0060.00013.08
7.3.310.0000.00616.24
7.3.300.0040.00416.34
7.3.290.0040.01116.32
7.3.280.0090.01116.36
7.3.270.0100.00717.40
7.3.260.0140.00516.43
7.3.250.0080.01116.43
7.3.240.0080.00916.36
7.3.230.0090.00916.47
7.3.210.0030.01316.35
7.3.200.0090.00616.69
7.3.190.0060.01016.30
7.3.180.0080.01016.34
7.3.170.0030.01316.43
7.3.160.0090.00616.54
7.3.120.0090.00914.93
7.3.110.0040.01414.86
7.3.100.0100.00714.91
7.3.90.0070.01014.95
7.3.80.0070.01114.64
7.3.70.0120.00314.63
7.3.60.0070.00714.79
7.3.50.0030.01014.71
7.3.40.0060.01214.64
7.3.30.0060.00814.76
7.3.20.0060.00616.40
7.3.10.0040.01116.74
7.3.00.0090.00316.85
7.2.330.0030.01316.77
7.2.320.0030.01416.86
7.2.310.0030.01316.72
7.2.300.0000.01716.40
7.2.290.0110.00716.65
7.2.250.0070.01015.02
7.2.240.0070.01314.96
7.2.230.0070.01015.18
7.2.220.0030.01415.18
7.2.210.0090.00615.03
7.2.200.0060.00914.98
7.2.190.0050.00515.07
7.2.180.0030.01015.13
7.2.170.0100.00715.13
7.2.60.0060.00616.98
7.1.330.0100.00315.74
7.1.320.0080.00815.86
7.1.310.0060.00915.88
7.1.300.0080.00015.99
7.1.290.0030.01315.59
7.1.280.0030.01415.66
7.1.270.0080.00515.79
7.1.260.0030.01015.86
7.1.200.0070.00715.85
7.1.70.0070.01417.16
7.1.60.0000.01217.39
7.1.30.2000.05736.43
7.1.20.2230.09336.51
7.1.10.1730.06020.34
7.1.00.2200.05720.63
7.0.200.0070.01016.69
7.0.170.1630.05720.05
7.0.160.2170.06320.04
7.0.150.1870.05719.91
7.0.140.2900.08720.05
7.0.130.2230.06020.15
7.0.120.2100.06320.11
7.0.110.2200.05720.10
7.0.100.2470.05720.05
7.0.90.1570.07020.13
7.0.80.2500.05320.16
7.0.70.2030.06020.04
7.0.60.2200.05720.18
7.0.50.1600.06320.11
7.0.40.1570.06020.12
7.0.30.2070.05720.12
7.0.20.2730.07720.13
7.0.10.1970.05720.13
7.0.00.1670.06720.05

preferences:
30.74 ms | 403 KiB | 5 Q