3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $row = array(1, 2, 3, 4); echo " <h2>question</h2> <p>".chr(64 + 1)."</p> <h2>answer</h2> <p>".chr(64 + 8)."</p>";
based on F1DVZ

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.0100.00719.29
7.1.100.0130.00317.95
7.1.70.0000.01117.16
7.1.60.0190.00619.46
7.1.50.0070.01716.92
7.1.00.0100.07022.28
7.0.200.0030.00716.80
7.0.140.0030.05322.21
7.0.60.0070.03719.78
7.0.50.0030.06017.80
7.0.40.0070.04320.21
7.0.30.0230.09020.09
7.0.20.0300.04720.18
7.0.10.0170.06320.20
7.0.00.0030.08720.04
5.6.280.0030.07321.11
5.6.210.0030.07720.46
5.6.200.0030.05318.08
5.6.190.0100.08320.60
5.6.180.0270.04720.57
5.6.170.0430.07020.41
5.6.160.0170.07720.44
5.6.150.0000.07318.16
5.6.140.0030.04018.11
5.6.130.0130.04318.12
5.6.120.0130.07720.98
5.6.110.0170.07321.11
5.6.100.0070.08320.98
5.6.90.0070.08721.09
5.6.80.0170.07320.50
5.5.350.0000.08020.52
5.5.340.0100.07718.02
5.5.330.0100.05720.26
5.5.320.0400.06320.21
5.5.310.0300.07720.30
5.5.300.0070.07717.91
5.5.290.0070.08017.91
5.5.280.0070.04020.86
5.5.270.0070.08720.86
5.5.260.0230.06720.71
5.5.250.0100.05720.44
5.5.240.4170.02720.14
5.4.450.0130.06019.59
5.4.440.0330.05719.57
5.4.430.0300.03719.14
5.4.420.0200.04719.50
5.4.410.0030.06319.33
5.4.400.0170.04319.02
5.4.390.0130.05718.74
5.4.380.0230.04718.74
5.4.370.0200.06018.66
5.4.360.0170.05318.74
5.4.350.0270.05018.65
5.4.340.0130.06318.72
5.4.320.0230.07318.46
5.4.310.0270.06318.68
5.4.300.0170.05318.62
5.4.290.0170.05318.71
5.4.280.0270.04718.51
5.4.270.0100.06318.57
5.4.260.0200.05718.54
5.4.250.0100.06318.67
5.4.240.0170.05718.71
5.4.230.0200.04718.56
5.4.220.0330.05718.70
5.4.210.0270.05718.48
5.4.200.0170.05016.55
5.4.190.0170.05318.66
5.4.180.0130.07718.62
5.4.170.0300.04718.45
5.4.160.0170.05018.44
5.4.150.0100.06018.69
5.4.140.0170.05316.09
5.4.130.0130.05716.25
5.4.120.0200.04716.19
5.4.110.0200.04316.06
5.4.100.0170.05316.04
5.4.90.0070.06316.08
5.4.80.0130.06316.06
5.4.70.0200.06716.01
5.4.60.0130.05716.23
5.4.50.0070.06016.27
5.4.40.0170.05716.27
5.4.30.0100.05316.19
5.4.20.0170.06716.32
5.4.10.0200.06716.31
5.4.00.0230.04315.80
5.3.290.0170.05314.71
5.3.280.0170.05714.57
5.3.270.0130.06014.55
5.3.260.0230.05314.59
5.3.250.0270.04314.60
5.3.240.0270.04314.60
5.3.230.0170.05014.57
5.3.220.0230.05314.66
5.3.210.0130.06014.66
5.3.200.0170.05014.47
5.3.190.0100.05714.54
5.3.180.0200.05314.57
5.3.170.0170.05314.55
5.3.160.0230.04314.56
5.3.150.0270.04714.59
5.3.140.0130.05314.51
5.3.130.0100.06014.55
5.3.120.0130.08014.52
5.3.110.0130.07714.47
5.3.100.0170.07013.96
5.3.90.0170.07013.93
5.3.80.0200.04714.00
5.3.70.0130.05313.94
5.3.60.0130.06313.94
5.3.50.0070.06013.88
5.3.40.0200.04713.84
5.3.30.0200.04314.00
5.3.20.0200.04313.67
5.3.10.0170.05313.68
5.3.00.0130.05313.60
5.2.170.0130.04311.12
5.2.160.0070.05011.09
5.2.150.0200.05711.12
5.2.140.0270.04011.18
5.2.130.0270.03011.06
5.2.120.0200.03311.01
5.2.110.0030.05711.15
5.2.100.0230.04711.06
5.2.90.0130.05711.11
5.2.80.0100.05011.01
5.2.70.0170.04711.13
5.2.60.0200.04011.03
5.2.50.0130.04311.05
5.2.40.0100.04310.95
5.2.30.0130.03711.02
5.2.20.0070.04310.99
5.2.10.0030.04710.83
5.2.00.0130.03710.75
5.1.60.0130.03010.13
5.1.50.0100.03710.11
5.1.40.0100.03710.11
5.1.30.0170.03010.39
5.1.20.0170.04710.39
5.1.10.0130.04010.04
5.1.00.0070.03710.07
5.0.50.0030.0338.54
5.0.40.0070.0278.54
5.0.30.0070.0438.20
5.0.20.0130.0208.38
5.0.10.0000.0338.19
5.0.00.0100.0408.19
4.4.90.0100.0175.89
4.4.80.0070.0205.85
4.4.70.0100.0175.85
4.4.60.0100.0175.91
4.4.50.0030.0235.87
4.4.40.0100.0405.87
4.4.30.0070.0275.87
4.4.20.0230.0235.93
4.4.10.0130.0235.95
4.4.00.0100.0405.97
4.3.110.0130.0175.83
4.3.100.0030.0235.78
4.3.90.0130.0135.88
4.3.80.0100.0305.83
4.3.70.0000.0275.89
4.3.60.0000.0275.89
4.3.50.0030.0275.77
4.3.40.0070.0335.80
4.3.30.0000.0274.68
4.3.20.0100.0174.68
4.3.10.0000.0274.59
4.3.00.0070.02012.54