3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ach = array(1=>"One",2=>"Two",3=>"Three"); //$ach[]['test'] = "okay"; foreach($ach){ echo $ach . " "; }

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.0120.05212.47
5.4.280.0090.05112.37
5.4.270.0130.04412.37
5.4.260.0090.05712.38
5.4.250.0140.04712.37
5.4.240.0070.05112.37
5.4.230.0050.05412.37
5.4.220.0110.04712.36
5.4.210.0090.04812.36
5.4.200.0090.05012.36
5.4.190.0100.04712.36
5.4.180.0110.04612.36
5.4.170.0040.05212.37
5.4.160.0080.05012.37
5.4.150.0110.04612.36
5.4.140.0070.05512.05
5.4.130.0120.04612.03
5.4.120.0070.05112.00
5.4.110.0080.05012.00
5.4.100.0080.04611.99
5.4.90.0080.05111.99
5.4.80.0090.05011.99
5.4.70.0050.05311.99
5.4.60.0080.04712.00
5.4.50.0090.05111.99
5.4.40.0080.05111.98
5.4.30.0090.04711.98
5.4.20.0080.04511.97
5.4.10.0070.03611.98
5.4.00.0090.03811.46
5.3.280.0140.03812.71
5.3.270.0090.04112.72
5.3.260.0080.04412.72
5.3.250.0070.05112.72
5.3.240.0070.04512.72
5.3.230.0090.04312.71
5.3.220.0080.05112.68
5.3.210.0080.04012.68
5.3.200.0100.04612.68
5.3.190.0130.04812.68
5.3.180.0110.04212.67
5.3.170.0110.04312.67
5.3.160.0100.04612.67
5.3.150.0080.05812.67
5.3.140.0090.05712.66
5.3.130.0120.05012.65
5.3.120.0120.05512.66
5.3.110.0060.06812.66
5.3.100.0110.04112.11
5.3.90.0080.05012.09
5.3.80.0120.04412.08
5.3.70.0080.04012.07
5.3.60.0070.04012.06
5.3.50.0090.04212.00
5.3.40.0160.05312.00
5.3.30.0120.05011.95
5.3.20.0080.04311.72
5.3.10.0130.05011.70
5.3.00.0090.05111.68
5.2.170.0030.0459.18
5.2.160.0110.0369.18
5.2.150.0060.0429.18
5.2.140.0110.0419.18
5.2.130.0070.0389.13
5.2.120.0080.0399.14
5.2.110.0070.0399.14
5.2.100.0050.0429.14
5.2.90.0060.0419.14
5.2.80.0050.0449.14
5.2.70.0050.0349.13
5.2.60.0060.0379.09
5.2.50.0060.0409.06
5.2.40.0070.0359.03
5.2.30.0090.0329.01
5.2.20.0040.0399.00
5.2.10.0040.0398.93
5.2.00.0080.0378.78
5.1.60.0060.0328.07
5.1.50.0020.0278.06
5.1.40.0070.0238.05
5.1.30.0040.0288.39
5.1.20.0030.0318.41
5.1.10.0030.0328.14
5.1.00.0080.0298.14
5.0.50.0070.0266.62
5.0.40.0050.0286.48
5.0.30.0070.0446.29
5.0.20.0060.0256.27
5.0.10.0050.0276.24
5.0.00.0050.0396.23
4.4.90.0030.0254.78
4.4.80.0060.0204.76
4.4.70.0030.0224.76
4.4.60.0030.0224.75
4.4.50.0050.0214.77
4.4.40.0040.0344.71
4.4.30.0060.0244.76
4.4.20.0030.0264.84
4.4.10.0030.0254.85
4.4.00.0030.0324.76
4.3.110.0060.0194.67
4.3.100.0080.0184.67
4.3.90.0030.0184.64
4.3.80.0030.0314.59
4.3.70.0030.0154.63
4.3.60.0030.0184.63
4.3.50.0020.0204.63
4.3.40.0070.0274.54
4.3.30.0020.0213.29
4.3.20.0000.0233.26
4.3.10.0040.0173.21
4.3.00.0270.01310.31

preferences:
138.06 ms | 1394 KiB | 7 Q