3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function a() { echo "a\n"; return true; } function b() { echo "b\n"; return false; } echo b() or a();
based on hrQlh

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.60.0030.00916.61
7.2.00.0090.00319.32
7.1.200.0030.01015.83
7.1.100.0060.00617.96
7.1.70.0000.00717.04
7.1.60.0140.01019.57
7.1.50.0070.01316.69
7.1.00.0070.07322.57
7.0.200.0030.00316.66
7.0.140.0030.03322.09
7.0.60.0000.04320.00
7.0.50.0070.07317.85
7.0.40.0100.08320.18
7.0.30.0500.07720.20
7.0.20.0270.07720.16
7.0.10.0100.08720.12
7.0.00.0130.05320.18
5.6.280.0070.07021.10
5.6.210.0030.04720.73
5.6.200.0170.07018.16
5.6.190.0030.04320.69
5.6.180.3070.05320.41
5.6.170.0330.07320.53
5.6.160.0000.06720.54
5.6.150.0070.07718.19
5.6.140.0000.04318.17
5.6.130.0070.03718.14
5.6.120.0170.07721.14
5.6.110.0070.05720.96
5.6.100.0200.07721.04
5.6.90.0030.08721.01
5.6.80.0130.07020.38
5.6.70.3800.04320.28
5.5.350.0230.05720.53
5.5.340.0070.08017.98
5.5.330.0030.04020.41
5.5.320.0200.08720.25
5.5.310.0200.08320.36
5.5.300.0130.06717.92
5.5.290.0030.05318.07
5.5.280.0100.08720.88
5.5.270.0170.05720.96
5.5.260.0130.07720.68
5.5.250.0000.09020.57
5.5.240.0270.06320.19
5.4.450.0530.06719.49
5.4.440.0930.07019.57
5.4.430.0030.06019.60
5.4.420.0170.05019.55
5.4.410.0030.06019.04
5.4.400.0130.04718.80
5.4.390.0170.05718.64
5.4.380.0130.07718.79
5.4.370.0000.05718.78
5.4.360.0100.04318.56
5.4.350.0030.05718.71
5.4.340.0030.05318.84
5.4.320.0030.06718.79
5.4.310.0030.05318.84
5.4.300.0070.04718.55
5.4.290.0100.04718.62
5.4.280.0100.05018.55
5.4.270.0130.04718.83
5.4.260.0030.05318.77
5.4.250.0070.05318.83
5.4.240.0100.05318.75
5.4.230.0170.04018.79
5.4.220.0030.05318.48
5.4.210.0030.05318.61
5.4.200.0000.05316.57
5.4.190.0070.05718.72
5.4.180.0030.05318.68
5.4.170.0130.04718.78
5.4.160.0100.04718.67
5.4.150.0100.04718.72
5.4.140.0070.04716.34
5.4.130.0030.06016.46
5.4.120.0100.06016.25
5.4.110.0070.05716.13
5.4.100.0070.05316.29
5.4.90.0170.03716.37
5.4.80.0100.04316.27
5.4.70.0000.05316.18
5.4.60.0030.05016.30
5.4.50.0070.04716.25
5.4.40.0100.04716.30
5.4.30.0070.04716.38
5.4.20.0000.05316.14
5.4.10.0000.05316.37
5.4.00.0030.04715.71
5.3.290.0100.04714.70
5.3.280.0030.05314.79
5.3.270.0070.05014.64
5.3.260.0100.05014.77
5.3.250.0070.05014.78
5.3.240.0030.05014.63
5.3.230.0030.05314.64
5.3.220.0030.06314.59
5.3.210.0070.05314.73
5.3.200.0030.05314.66
5.3.190.0030.05014.54
5.3.180.0070.05314.61
5.3.170.0000.05714.66
5.3.160.0170.04014.62
5.3.150.0200.04014.62
5.3.140.0030.05014.54
5.3.130.0100.04714.54
5.3.120.0000.05714.57
5.3.110.0000.05714.68
5.3.100.0100.05714.20
5.3.90.0000.05314.20
5.3.80.0100.04314.11
5.3.70.0070.04714.01
5.3.60.0070.04714.00
5.3.50.0030.05014.02
5.3.40.0070.05013.98
5.3.30.0070.04313.90
5.3.20.0070.04713.91
5.3.10.0130.03713.78
5.3.00.0070.04713.76
5.2.170.0070.03711.21
5.2.160.0030.03711.25
5.2.150.0070.03711.18
5.2.140.0030.04011.16
5.2.130.0000.04311.21
5.2.120.0030.04011.14
5.2.110.0030.04011.22
5.2.100.0030.05311.13
5.2.90.0000.04311.22
5.2.80.0070.03711.14
5.2.70.0030.04011.11
5.2.60.0070.03711.09
5.2.50.0030.04011.02
5.2.40.0030.05011.05
5.2.30.0200.04011.17
5.2.20.0030.05311.01
5.2.10.0070.03710.87
5.2.00.0000.04710.72
5.1.60.0070.03310.11
5.1.50.0030.03310.02
5.1.40.0100.03010.07
5.1.30.0000.04010.54
5.1.20.0100.03010.57
5.1.10.0000.03710.23
5.1.00.0070.03010.09
5.0.50.0100.0208.54
5.0.40.0030.0238.45
5.0.30.0000.0478.25
5.0.20.0070.0278.24
5.0.10.0070.0238.26
5.0.00.0070.0378.18
4.4.90.0000.0235.98
4.4.80.0100.0135.95
4.4.70.0000.0235.87
4.4.60.0000.0235.91
4.4.50.0000.0236.00
4.4.40.0030.0335.88
4.4.30.0030.0206.00
4.4.20.0000.0235.95
4.4.10.0000.0276.07
4.4.00.0030.0435.89
4.3.110.0030.0205.85
4.3.100.0000.0235.82
4.3.90.0000.0305.80
4.3.80.0100.0275.88
4.3.70.0030.0205.81
4.3.60.0000.0235.85
4.3.50.0070.0205.79
4.3.40.0030.0305.75
4.3.30.0000.0234.57
4.3.20.0000.0234.63
4.3.10.0000.0234.54
4.3.00.0270.0176.68