3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array('abcd', 'df43', 'asdfsa'); foreach ($a as $val) { if ($val == '' || $val == 0) { echo "$val"; } }
based on JMVVX

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.00019.09
7.1.100.0000.01417.75
7.1.70.0000.00816.80
7.1.60.0130.01019.46
7.1.50.0100.01316.79
7.1.00.0030.07722.28
7.0.200.0140.00414.68
7.0.140.0030.05322.18
7.0.60.0130.07319.80
7.0.50.0130.07717.80
7.0.40.0100.08320.41
7.0.30.0500.07020.09
7.0.20.0370.06720.33
7.0.10.0000.05720.19
7.0.00.0030.04320.00
5.6.280.0000.07720.88
5.6.210.0130.07320.53
5.6.200.0130.08018.15
5.6.190.0070.08720.67
5.6.180.0430.05020.79
5.6.170.0170.07020.38
5.6.160.0000.04320.54
5.6.150.0130.07018.16
5.6.140.0070.06018.18
5.6.130.0100.04318.11
5.6.120.0030.07721.15
5.6.110.0000.04320.96
5.6.100.0070.08320.97
5.6.90.0070.08321.12
5.6.80.0100.07720.38
5.5.350.0230.05320.38
5.5.340.0030.03717.95
5.5.330.0070.08020.56
5.5.320.0000.09020.41
5.5.310.0330.03720.29
5.5.300.0100.05018.00
5.5.290.0170.06017.93
5.5.280.0200.07020.64
5.5.270.0000.06020.88
5.5.260.0100.04320.71
5.5.250.0200.04320.68
5.5.240.0030.03320.27
5.4.450.0570.06019.14
5.4.440.0100.05719.45
5.4.430.0170.05019.29
5.4.420.0200.04319.68
5.4.410.0100.08019.41
5.4.400.0100.06018.95
5.4.390.0200.05318.81
5.4.380.0100.06318.67
5.4.370.0270.06318.64
5.4.360.0200.05318.77
5.4.350.0100.06318.45
5.4.340.0200.05318.52
5.4.320.0170.05718.60
5.4.310.0170.05718.71
5.4.300.0270.05018.69
5.4.290.0170.05318.48
5.4.280.0100.05718.45
5.4.270.0170.05718.68
5.4.260.0200.05018.68
5.4.250.0200.05318.44
5.4.240.0130.05318.65
5.4.230.0130.05718.64
5.4.220.0170.05718.43
5.4.210.0230.05718.44
5.4.200.0130.05316.45
5.4.190.0100.06018.64
5.4.180.0170.05318.38
5.4.170.0130.07018.79
5.4.160.0070.06018.51
5.4.150.0200.05018.50
5.4.140.0130.05716.15
5.4.130.0130.05016.16
5.4.120.0230.05016.25
5.4.110.0100.06016.34
5.4.100.0170.06316.18
5.4.90.0170.05316.14
5.4.80.0130.06716.12
5.4.70.0170.05316.21
5.4.60.0270.05316.31
5.4.50.0130.06316.11
5.4.40.0200.05016.09
5.4.30.0130.06016.30
5.4.20.0230.05016.21
5.4.10.0070.06316.20
5.4.00.0100.06015.69
5.3.290.0200.05314.63
5.3.280.0130.06314.45
5.3.270.0170.05314.43
5.3.260.0070.06714.54
5.3.250.0170.05714.52
5.3.240.0170.06014.57
5.3.230.0200.05014.52
5.3.220.0070.06314.47
5.3.210.0230.05314.54
5.3.200.0200.04714.50
5.3.190.0130.05714.55
5.3.180.0170.05314.63
5.3.170.0170.05014.52
5.3.160.0270.05014.50
5.3.150.0200.05014.47
5.3.140.0130.05314.61
5.3.130.0270.05014.50
5.3.120.0270.04714.53
5.3.110.0300.04314.49
5.3.100.0200.04713.96
5.3.90.0200.05013.95
5.3.80.0100.05713.88
5.3.70.0300.05313.89
5.3.60.0130.05713.83
5.3.50.0230.05313.91
5.3.40.0230.05313.77
5.3.30.0230.04313.88
5.3.20.0200.04713.63
5.3.10.0370.04313.73
5.3.00.0200.05713.56
5.2.170.0200.03711.08
5.2.160.0200.03311.10
5.2.150.0100.04311.08
5.2.140.0100.04711.14
5.2.130.0130.04311.01
5.2.120.0200.03311.07
5.2.110.0200.03311.08
5.2.100.0170.03311.04
5.2.90.0170.04011.07
5.2.80.0170.04011.05
5.2.70.0200.03711.06
5.2.60.0100.04311.06
5.2.50.0170.04010.91
5.2.40.0100.04011.00
5.2.30.0170.03710.90
5.2.20.0100.04310.90
5.2.10.0100.04310.79
5.2.00.0170.03710.66
5.1.60.0130.03010.06
5.1.50.0100.0339.88
5.1.40.0200.0279.98
5.1.30.0070.03710.22
5.1.20.0100.04010.43
5.1.10.0130.03310.11
5.1.00.0130.03710.12
5.0.50.0070.0308.66
5.0.40.0030.0308.45
5.0.30.0100.0408.24
5.0.20.0130.0208.27
5.0.10.0070.0308.14
5.0.00.0030.0508.16
4.4.90.0000.0306.59
4.4.80.0030.0276.59
4.4.70.0000.0306.59
4.4.60.0070.0236.59
4.4.50.0030.0236.59
4.4.40.0070.0336.59
4.4.30.0100.0176.59
4.4.20.0100.0176.59
4.4.10.0070.0206.59
4.4.00.0030.0376.59
4.3.110.0000.0276.59
4.3.100.0000.0276.59
4.3.90.0070.0206.59
4.3.80.0100.0306.59
4.3.70.0070.0236.59
4.3.60.0030.0236.59
4.3.50.0070.0236.59
4.3.40.0070.0436.59
4.3.30.0100.0176.59
4.3.20.0030.0236.59
4.3.10.0030.0206.59
4.3.00.0000.0239.24