3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $workspace_id = null; if(!$workspace_id) { echo "I'm not"; } else { echo "I am!"; }
based on rJ62f

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.3.10.0030.01216.71
7.3.00.0050.00516.58
7.2.130.0130.00016.82
7.2.120.0070.00716.63
7.2.110.0100.00316.84
7.2.100.0090.00316.91
7.2.90.0000.01316.59
7.2.80.0030.00616.78
7.2.70.0130.00316.76
7.2.60.0030.01016.81
7.2.50.0070.01016.67
7.2.40.0030.00616.89
7.2.30.0090.00616.72
7.2.20.0070.01016.73
7.2.10.0070.00316.53
7.2.00.0070.00618.12
7.1.250.0000.01115.70
7.1.100.0050.00318.04
7.1.70.0140.01117.04
7.1.60.0040.01419.22
7.1.50.0100.01016.77
7.1.00.0070.07322.36
7.0.200.0040.00816.74
7.0.140.0000.03321.96
7.0.60.0130.04719.93
7.0.50.0070.08017.85
7.0.40.0130.08020.05
7.0.30.0300.07720.21
7.0.20.0230.04720.00
7.0.10.0070.07020.02
7.0.00.0070.04020.20
5.6.280.0070.07020.77
5.6.210.0100.06720.54
5.6.200.0100.07318.13
5.6.190.0030.08020.42
5.6.180.0400.06720.33
5.6.170.0300.07320.51
5.6.160.0030.09020.49
5.6.150.0130.07318.11
5.6.140.0030.07318.11
5.6.130.0100.07718.22
5.6.120.0030.04321.13
5.6.110.0130.06021.12
5.6.100.0100.07721.13
5.6.90.0030.09020.96
5.6.80.0070.08020.28
5.5.350.0170.04720.46
5.5.340.0070.04318.00
5.5.330.0070.08020.21
5.5.320.0300.05320.34
5.5.310.0270.08320.29
5.5.300.0000.04017.96
5.5.290.0030.07717.96
5.5.280.0170.07720.97
5.5.270.0070.07020.64
5.5.260.0170.08020.86
5.5.250.0070.07020.46
5.5.240.0130.07020.06
5.4.450.0700.05319.32
5.4.440.0800.04719.37
5.4.430.0630.06019.24
5.4.420.0700.05019.65
5.4.410.0400.05719.36
5.4.400.0530.05019.17
5.4.390.0200.06718.61
5.4.380.0370.05318.70
5.4.370.0300.06318.52
5.4.360.0400.05018.77
5.4.350.0270.06318.59
5.4.340.0330.07318.65
5.4.320.0330.08018.61
5.4.310.0430.07718.77
5.4.300.0570.05318.68
5.4.290.0300.06318.49
5.4.280.0300.05718.39
5.4.270.0300.05318.75
5.4.260.0300.05318.45
5.4.250.0470.05318.64
5.4.240.0270.05718.64
5.4.230.0330.04718.73
5.4.220.0370.06018.72
5.4.210.0330.07718.76
5.4.200.0500.05716.51
5.4.190.0270.08318.70
5.4.180.0330.07018.44
5.4.170.0430.04718.48
5.4.160.0600.04718.50
5.4.150.0370.05018.44
5.4.140.0370.05016.07
5.4.130.0400.04016.16
5.4.120.0300.05716.12
5.4.110.0270.05316.21
5.4.100.0370.05016.14
5.4.90.0200.06316.21
5.4.80.0330.05716.14
5.4.70.0370.05316.04
5.4.60.0300.05316.23
5.4.50.0300.06716.19
5.4.40.0400.04716.21
5.4.30.0270.05716.02
5.4.20.0300.05316.32
5.4.10.0300.04716.18
5.4.00.0270.05315.71
5.3.290.0230.05714.57
5.3.280.0230.05314.57
5.3.270.0430.06314.56
5.3.260.0530.06314.49
5.3.250.0370.06314.57
5.3.240.0400.06314.51
5.3.230.0330.05014.63
5.3.220.0230.05714.56
5.3.210.0330.08014.54
5.3.200.0500.05714.65
5.3.190.0370.04314.57
5.3.180.0270.05314.64
5.3.170.0200.05714.54
5.3.160.0470.04714.51
5.3.150.0330.06314.48
5.3.140.0270.04714.54
5.3.130.0230.05314.51
5.3.120.0130.07014.54
5.3.110.0470.06314.55
5.3.100.0300.04714.04
5.3.90.0430.06014.02
5.3.80.0330.06714.11
5.3.70.0200.05313.95
5.3.60.0270.05714.03
5.3.50.0330.05313.92
5.3.40.0270.05313.93
5.3.30.0230.06314.00
5.3.20.0170.06313.64
5.3.10.0400.04013.55
5.3.00.0400.04313.70
5.2.170.0170.05311.17
5.2.160.0370.04011.09
5.2.150.0330.04311.17
5.2.140.0200.05311.12
5.2.130.0270.03711.08
5.2.120.0370.03011.23
5.2.110.0270.03311.05
5.2.100.0270.04011.10
5.2.90.0230.04311.24
5.2.80.0170.05011.15
5.2.70.0200.04311.06
5.2.60.0200.04010.99
5.2.50.0170.04710.93
5.2.40.0170.04311.02
5.2.30.0170.04311.00
5.2.20.0130.04711.01
5.2.10.0170.03710.95
5.2.00.0230.04710.75
5.1.60.0200.03310.04
5.1.50.0230.03010.02
5.1.40.0230.0409.99
5.1.30.0270.04010.42
5.1.20.0230.04010.39
5.1.10.0200.03710.11
5.1.00.0270.03710.08
5.0.50.0170.0238.66
5.0.40.0130.0308.46
5.0.30.0170.0478.27
5.0.20.0100.0338.27
5.0.10.0100.0308.34
5.0.00.0200.0408.21
4.4.90.0130.0206.34
4.4.80.0130.0206.34
4.4.70.0170.0236.34
4.4.60.0130.0236.34
4.4.50.0200.0276.34
4.4.40.0230.0376.34
4.4.30.0100.0206.34
4.4.20.0100.0276.34
4.4.10.0200.0276.34
4.4.00.0100.0376.34
4.3.110.0130.0176.34
4.3.100.0130.0206.34
4.3.90.0070.0236.34
4.3.80.0070.0376.34
4.3.70.0130.0176.34
4.3.60.0130.0206.34
4.3.50.0070.0276.34
4.3.40.0100.0336.34
4.3.30.0100.0276.34
4.3.20.0070.0236.34
4.3.10.0030.0206.34
4.3.00.0100.0307.21