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'; } }

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.00619.04
7.1.100.0070.00718.11
7.1.70.0040.00717.10
7.1.60.0160.00919.46
7.1.50.0070.01416.93
7.1.00.0100.07022.47
7.0.200.0070.00714.69
7.0.140.0000.05022.05
7.0.60.0100.08019.87
7.0.50.0070.06017.91
7.0.40.0030.04720.20
7.0.30.0600.07020.16
7.0.20.0330.07720.00
7.0.10.0070.06720.22
7.0.00.0100.03720.29
5.6.210.0100.07720.50
5.6.200.0100.03718.18
5.6.190.0130.08320.27
5.6.180.0530.07020.57
5.6.170.0370.07020.33
5.6.160.0070.03720.40
5.6.150.0030.08318.21
5.6.140.0130.08018.11
5.6.130.0000.05018.21
5.6.120.0100.05320.98
5.6.110.0100.04020.99
5.6.100.0100.06021.11
5.6.90.0030.05721.00
5.6.80.0100.08320.37
5.5.350.0230.08020.40
5.5.340.0030.07718.02
5.5.330.0130.07720.23
5.5.320.0070.08320.30
5.5.310.0400.07020.32
5.5.300.0100.06017.97
5.5.290.0100.08017.88
5.5.280.0070.04320.87
5.5.270.0070.04320.96
5.5.260.0030.09020.81
5.5.250.0070.06320.58
5.5.240.0070.05020.28
5.4.450.0430.07019.49
5.4.440.0530.07019.27
5.4.430.0100.05319.45
5.4.420.0100.06319.53
5.4.410.0230.04319.34
5.4.400.0100.05319.03
5.4.390.0200.05018.60
5.4.380.0070.06718.52
5.4.370.0200.05018.45
5.4.360.0230.05718.72
5.4.350.0230.04718.76
5.4.340.0200.05318.52
5.4.320.0200.06718.45
5.4.310.0170.05718.45
5.4.300.0330.04018.69
5.4.290.0200.05018.45
5.4.280.0200.05318.52
5.4.270.0230.05318.61
5.4.260.0270.04318.44
5.4.250.0170.05718.54
5.4.240.0170.06018.61
5.4.230.0300.04318.71
5.4.220.0230.05318.66
5.4.210.0200.05318.66
5.4.200.0170.05716.37
5.4.190.0200.05718.67
5.4.180.0300.04718.67
5.4.170.0170.06018.68
5.4.160.0330.04318.45
5.4.150.0200.05718.51
5.4.140.0170.05716.25
5.4.130.0270.04316.03
5.4.120.0130.07016.19
5.4.110.0200.05716.23
5.4.100.0130.05716.22
5.4.90.0200.05716.19
5.4.80.0170.05316.24
5.4.70.0170.07016.22
5.4.60.0230.05016.19
5.4.50.0170.05316.22
5.4.40.0300.04016.21
5.4.30.0100.05716.09
5.4.20.0200.05716.18
5.4.10.0130.05716.21
5.4.00.0170.05315.61
5.3.290.0100.06314.60
5.3.280.0130.05714.43
5.3.270.0130.06014.68
5.3.260.0200.05714.51
5.3.250.0230.04714.67
5.3.240.0100.06014.59
5.3.230.0170.05014.52
5.3.220.0170.05314.39
5.3.210.0230.07014.44
5.3.200.0200.05314.50
5.3.190.0170.05314.51
5.3.180.0170.05014.49
5.3.170.0170.05014.51
5.3.160.0170.06014.38
5.3.150.0130.05714.61
5.3.140.0170.05314.44
5.3.130.0170.06014.50
5.3.120.0070.06714.37
5.3.110.0330.05314.47
5.3.100.0300.05714.00
5.3.90.0130.06013.96
5.3.80.0170.06713.94
5.3.70.0200.06713.94
5.3.60.0230.07013.88
5.3.50.0270.04313.91
5.3.40.0300.05013.81
5.3.30.0230.05013.97
5.3.20.0130.05713.63
5.3.10.0170.06013.62
5.3.00.0270.06013.56
5.2.170.0100.06311.23
5.2.160.0330.04711.05
5.2.150.0270.04711.11
5.2.140.0270.05011.07
5.2.130.0170.04711.06
5.2.120.0130.04311.12
5.2.110.0130.04711.04
5.2.100.0170.05011.11
5.2.90.0230.05011.01
5.2.80.0200.05311.13
5.2.70.0230.03711.09
5.2.60.0200.03710.97
5.2.50.0100.04310.91
5.2.40.0130.05310.93
5.2.30.0100.04310.99
5.2.20.0200.03310.93
5.2.10.0130.04010.91
5.2.00.0130.04010.70
5.1.60.0130.0309.92
5.1.50.0100.03310.08
5.1.40.0100.0339.91
5.1.30.0100.04010.26
5.1.20.0100.04310.38
5.1.10.0070.04310.05
5.1.00.0170.03010.06
5.0.50.0030.0338.54
5.0.40.0170.0278.42
5.0.30.0030.0478.27
5.0.20.0070.0278.23
5.0.10.0000.0338.18
5.0.00.0130.0408.18
4.4.90.0100.0236.59
4.4.80.0070.0206.59
4.4.70.0100.0176.59
4.4.60.0070.0206.59
4.4.50.0070.0236.59
4.4.40.0000.0406.59
4.4.30.0100.0176.59
4.4.20.0030.0276.59
4.4.10.0070.0236.59
4.4.00.0030.0406.59
4.3.110.0030.0336.59
4.3.100.0070.0236.59
4.3.90.0070.0236.59
4.3.80.0070.0336.59
4.3.70.0000.0336.59
4.3.60.0070.0276.59
4.3.50.0070.0236.59
4.3.40.0130.0306.59
4.3.30.0070.0206.59
4.3.20.0070.0176.59
4.3.10.0000.0236.59
4.3.00.0100.0209.24