3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $color = array('white', 'green', 'red'); foreach ($color as $c) { echo "$c, "; } sort($color); echo "<ul>"; foreach ($color as $y) { echo "<li>$y</li>"; } echo "</ul>"; ?>

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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.2.00.0110.00319.32
7.1.100.0030.00917.68
7.1.70.0000.00817.23
7.1.60.0140.01119.70
7.1.50.0100.01016.94
7.1.00.0030.07722.30
7.0.200.0040.00416.63
7.0.140.0030.07322.07
7.0.60.0070.07720.09
7.0.50.0000.04317.91
7.0.40.0030.04720.08
7.0.30.0600.05020.21
7.0.20.0370.06720.02
7.0.10.0200.06720.19
7.0.00.0130.03720.21
5.6.280.0000.07721.09
5.6.210.0070.08320.47
5.6.200.0170.07018.07
5.6.190.0070.04720.41
5.6.180.0270.04020.43
5.6.170.0270.08320.48
5.6.160.0100.08020.48
5.6.150.0100.04718.20
5.6.140.0070.08018.18
5.6.130.0070.08018.15
5.6.120.0130.04721.11
5.6.110.0070.05721.01
5.6.100.0000.05020.88
5.6.90.0070.08321.09
5.6.80.0070.08320.37
5.6.70.4270.04020.37
5.5.350.0130.07320.42
5.5.340.0100.06717.96
5.5.330.0100.08020.47
5.5.320.0130.04320.29
5.5.310.0230.06320.28
5.5.300.0070.04718.02
5.5.290.0100.04317.96
5.5.280.0070.05320.87
5.5.270.0000.07320.61
5.5.260.0070.03720.96
5.5.250.0100.05720.57
5.5.240.0130.07320.35
5.4.450.0300.05319.92
5.4.440.0400.04019.76
5.4.430.0170.04319.56
5.4.420.0330.02719.38
5.4.410.0370.04019.28
5.4.400.0400.04019.09
5.4.390.0300.04019.06
5.4.380.0730.06718.62
5.4.370.0630.05318.50
5.4.360.0870.05018.46
5.4.350.0970.05018.46
5.4.340.0930.04718.57
5.4.320.0030.03812.45
5.4.310.0060.03712.45
5.4.300.0080.05612.46
5.4.290.0110.05612.45
5.4.280.0090.05612.35
5.4.270.0110.05212.35
5.4.260.0090.05712.35
5.4.250.0110.10312.35
5.4.240.0080.05412.35
5.4.230.0140.06612.34
5.4.220.0070.05512.34
5.4.210.0090.05212.34
5.4.200.0100.05312.34
5.4.190.0070.05512.34
5.4.180.0070.05712.34
5.4.170.0070.05912.35
5.4.160.0070.05812.34
5.4.150.0100.05912.34
5.4.140.0100.05512.03
5.4.130.0090.05112.02
5.4.120.0170.06411.97
5.4.110.0080.05311.96
5.4.100.0110.04511.96
5.4.90.0090.05111.96
5.4.80.0080.05511.96
5.4.70.0090.05311.96
5.4.60.0160.08011.96
5.4.50.0100.07611.96
5.4.40.0060.04811.95
5.4.30.0090.04711.95
5.4.20.0050.05211.95
5.4.10.0060.04811.95
5.4.00.0060.05111.44
5.3.290.0070.04312.80
5.3.280.0080.04912.71
5.3.270.0060.05412.73
5.3.260.0080.05412.71
5.3.250.0150.06312.72
5.3.240.0060.05212.72
5.3.230.0080.04912.71
5.3.220.0030.05612.68
5.3.210.0100.05312.68
5.3.200.0080.04212.68
5.3.190.0120.04812.68
5.3.180.0110.04012.68
5.3.170.0090.04812.67
5.3.160.0100.04812.68
5.3.150.0090.05812.67
5.3.140.0110.07712.66
5.3.130.0110.05612.66
5.3.120.0150.06212.66
5.3.110.0150.05412.66
5.3.100.0110.05412.12
5.3.90.0100.05512.08
5.3.80.0120.06812.08
5.3.70.0150.07112.07
5.3.60.0150.07312.06
5.3.50.0250.08212.00
5.3.40.0120.05112.00
5.3.30.0080.05511.94
5.3.20.0060.05311.72
5.3.10.0110.05011.69
5.3.00.0090.05311.67
5.2.170.0040.0479.18
5.2.160.0030.0479.18
5.2.150.0100.0429.18
5.2.140.0080.0419.17
5.2.130.0050.0489.13
5.2.120.0090.0379.13
5.2.110.0060.0459.14
5.2.100.0060.0429.14
5.2.90.0060.0359.13
5.2.80.0080.0339.14
5.2.70.0060.0359.13
5.2.60.0030.0399.09
5.2.50.0040.0399.05
5.2.40.0080.0379.03
5.2.30.0070.0389.01
5.2.20.0050.0369.00
5.2.10.0060.0338.92
5.2.00.0060.0358.77
5.1.60.0070.0308.06
5.1.50.0130.0288.06
5.1.40.0070.0318.04
5.1.30.0100.0348.39
5.1.20.0060.0398.41
5.1.10.0090.0338.14
5.1.00.0070.0348.14
5.0.50.0080.0286.62
5.0.40.0040.0276.48
5.0.30.0040.0416.29
5.0.20.0040.0266.26
5.0.10.0040.0286.23
5.0.00.0060.0366.23
4.4.90.0040.0204.78
4.4.80.0030.0224.75
4.4.70.0040.0204.76
4.4.60.0040.0244.75
4.4.50.0050.0204.77
4.4.40.0080.0284.71
4.4.30.0060.0184.76
4.4.20.0030.0224.84
4.4.10.0040.0214.85
4.4.00.0050.0304.76
4.3.110.0070.0194.67
4.3.100.0070.0184.67
4.3.90.0020.0224.64
4.3.80.0060.0274.59
4.3.70.0040.0194.63
4.3.60.0010.0224.62
4.3.50.0050.0204.63
4.3.40.0080.0264.54
4.3.30.0030.0213.29
4.3.20.0030.0213.27
4.3.10.0010.0223.22
4.3.00.0030.02015.30