3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fruits=array("Apple","Mango","Banana"); for($x=0;$x<$arrlength;$x++){ Echo $fruits[$x]; Echo "<br>;} ?>

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.380.0180.05318.54
5.4.370.0180.05318.57
5.4.360.0180.05018.65
5.4.350.0200.05318.63
5.4.340.0280.05018.67
5.4.320.0220.05518.54
5.4.310.0130.05718.68
5.4.300.0230.05018.64
5.4.290.0200.06018.66
5.4.280.0220.06218.59
5.4.270.0130.06718.66
5.4.260.0270.05518.63
5.4.250.0380.05818.56
5.4.240.0270.06818.55
5.4.230.0170.06518.72
5.4.220.0220.06518.66
5.4.210.0270.05818.61
5.4.200.0180.05016.51
5.4.190.0230.04818.70
5.4.180.0270.05718.57
5.4.170.0220.06518.54
5.4.160.0220.04718.59
5.4.150.0150.05718.56
5.4.140.0150.05716.25
5.4.130.0170.05316.26
5.4.120.0230.04716.06
5.4.110.0200.04516.29
5.4.100.0180.05716.21
5.4.90.0120.06216.14
5.4.80.0220.04716.12
5.4.70.0200.05316.24
5.4.60.0150.05016.27
5.4.50.0120.05216.12
5.4.40.0100.05516.22
5.4.30.0200.04716.11
5.4.20.0180.04816.13
5.4.10.0250.04316.18
5.4.00.0150.05215.67
5.3.290.0180.05514.63
5.3.280.0330.03814.68
5.3.270.0270.05514.54
5.3.260.0200.05214.62
5.3.250.0280.04314.67
5.3.240.0150.05514.55
5.3.230.0230.06314.57
5.3.220.0200.06514.52
5.3.210.0220.05214.53
5.3.200.0220.05214.60
5.3.190.0270.05314.55
5.3.180.0220.05014.58
5.3.170.0200.06014.56
5.3.160.0150.06014.48
5.3.150.0180.05314.54
5.3.140.0080.07014.60
5.3.130.0170.05714.51
5.3.120.0450.05214.64
5.3.110.0120.05714.61
5.3.100.0100.05314.00
5.3.90.0100.06014.00
5.3.80.0170.06213.98
5.3.70.0130.05514.02
5.3.60.0220.05513.96
5.3.50.0250.05213.96
5.3.40.0170.06213.99
5.3.30.0180.05813.89
5.3.20.0220.05313.60
5.3.10.0150.05213.70
5.3.00.0080.05813.55
5.2.170.0120.04211.11
5.2.160.0150.04711.19
5.2.150.0120.04311.14
5.2.140.0150.03811.18
5.2.130.0120.04311.21
5.2.120.0150.03811.06
5.2.110.0150.04211.07
5.2.100.0170.04211.09
5.2.90.0120.04311.04
5.2.80.0150.04211.14
5.2.70.0180.04311.10
5.2.60.0180.03811.11
5.2.50.0220.04211.12
5.2.40.0150.04310.98
5.2.30.0180.04210.95
5.2.20.0150.03810.92
5.2.10.0100.04310.88
5.2.00.0080.04510.74
5.1.60.0150.03010.05
5.1.50.0120.03310.02
5.1.40.0130.03310.10
5.1.30.0080.04010.38
5.1.20.0150.03310.41
5.1.10.0130.03310.12
5.1.00.0170.03310.09
5.0.50.0050.0328.62
5.0.40.0030.0328.47
5.0.30.0070.0438.31
5.0.20.0070.0328.30
5.0.10.0070.0288.33
5.0.00.0080.0478.23
4.4.90.0100.0236.02
4.4.80.0050.0276.02
4.4.70.0050.0256.02
4.4.60.0050.0276.02
4.4.50.0070.0256.02
4.4.40.0080.0376.02
4.4.30.0070.0306.02
4.4.20.0080.0286.02
4.4.10.0080.0276.02
4.4.00.0070.0436.02
4.3.110.0120.0226.02
4.3.100.0080.0286.02
4.3.90.0100.0256.02
4.3.80.0100.0386.02
4.3.70.0080.0276.02
4.3.60.0080.0276.02
4.3.50.0080.0256.02
4.3.40.0100.0356.02
4.3.30.0000.0286.02
4.3.20.0070.0206.02
4.3.10.0070.0236.02
4.3.00.0000.0337.59

preferences:
147.76 ms | 1394 KiB | 7 Q