3v4l.org

run code in 300+ PHP versions simultaneously
<?php <html> <head> <title>les listes dynamiques</title> </head> <body> $liste = array("Casablanca","Fes","Kenitra","Rabat"); $max=sizeof($liste); ?> <form name="liste"> Selectionnez la ville :<br/> <select name='ville' size="$max" multiple> <?php for($i=0;$i<$max;$i++){ echo"<option value='$i'>$liste[$i]</option>"; } echo"</select>"; echo"</form>"; </body> </html>

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)
5.4.290.0070.03712.48
5.4.280.0090.03912.37
5.4.270.0100.03212.38
5.4.260.0060.03712.38
5.4.250.0050.03812.38
5.4.240.0060.03612.38
5.4.230.0080.03812.36
5.4.220.0030.04012.37
5.4.210.0050.03812.37
5.4.200.0070.03912.37
5.4.190.0040.04312.36
5.4.180.0090.04312.36
5.4.170.0080.05012.37
5.4.160.0090.03912.37
5.4.150.0050.04112.36
5.4.140.0080.04012.05
5.4.130.0130.04112.03
5.4.120.0080.03712.00
5.4.110.0050.03912.00
5.4.100.0050.03612.00
5.4.90.0050.03612.00
5.4.80.0050.03612.00
5.4.70.0050.03511.99
5.4.60.0040.03612.00
5.4.50.0060.03411.99
5.4.40.0040.03611.98
5.4.30.0040.03811.97
5.4.20.0050.03611.97
5.4.10.0070.03411.98
5.4.00.0050.04011.47
5.3.280.0090.03712.71
5.3.270.0080.03912.72
5.3.260.0080.04012.72
5.3.250.0090.05112.72
5.3.240.0070.05912.72
5.3.230.0060.06012.71
5.3.220.0110.05212.68
5.3.210.0070.05112.68
5.3.200.0040.04612.68
5.3.190.0040.04312.68
5.3.180.0070.03512.67
5.3.170.0060.03812.67
5.3.160.0080.03812.67
5.3.150.0060.04012.67
5.3.140.0080.03512.66
5.3.130.0040.04312.66
5.3.120.0100.05312.66
5.3.110.0070.04612.66
5.3.100.0100.03512.12
5.3.90.0080.03712.08
5.3.80.0050.03912.07
5.3.70.0070.03712.07
5.3.60.0070.04112.06
5.3.50.0050.04612.00
5.3.40.0110.05712.00
5.3.30.0130.04311.95
5.3.20.0050.04011.73
5.3.10.0130.03111.70
5.3.00.0070.04011.68
5.2.170.0030.0369.18
5.2.160.0120.0499.18
5.2.150.0050.0479.18
5.2.140.0100.0519.18
5.2.130.0090.0369.14
5.2.120.0030.0329.14
5.2.110.0050.0339.15
5.2.100.0060.0319.14
5.2.90.0060.0329.14
5.2.80.0040.0329.14
5.2.70.0060.0349.14
5.2.60.0060.0389.09
5.2.50.0030.0409.05
5.2.40.0070.0369.04
5.2.30.0110.0359.01
5.2.20.0100.0349.00
5.2.10.0060.0378.93
5.2.00.0040.0338.79
5.1.60.0040.0308.06
5.1.50.0030.0368.06
5.1.40.0020.0388.05
5.1.30.0080.0358.39
5.1.20.0030.0408.41
5.1.10.0120.0488.14
5.1.00.0080.0348.14
5.0.50.0050.0276.63
5.0.40.0030.0306.48
5.0.30.0010.0466.29
5.0.20.0030.0286.27
5.0.10.0050.0336.23
5.0.00.0050.0406.23
4.4.90.0030.0234.78
4.4.80.0040.0224.75
4.4.70.0010.0254.75
4.4.60.0070.0194.75
4.4.50.0070.0204.77
4.4.40.0070.0424.71
4.4.30.0060.0214.76
4.4.20.0030.0234.84
4.4.10.0060.0434.85
4.4.00.0020.0354.76
4.3.110.0050.0214.66
4.3.100.0030.0194.66
4.3.90.0070.0114.64
4.3.80.0020.0254.58
4.3.70.0010.0164.63
4.3.60.0020.0164.63
4.3.50.0010.0184.63
4.3.40.0020.0264.54
4.3.30.0020.0173.28
4.3.20.0030.0163.26
4.3.10.0020.0173.22
4.3.00.0000.03310.55

preferences:
138.48 ms | 1394 KiB | 7 Q