3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $foo='foo'; $bar = isset($foo) ?: 'bar'; var_dump($bar);
based on BoJpr

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.0090.00619.13
7.1.100.0000.01017.97
7.1.70.0040.00417.02
7.1.60.0170.00719.50
7.1.50.0100.00716.82
7.1.00.0100.06322.36
7.0.200.0190.00614.91
7.0.140.0000.07322.12
7.0.60.0000.04319.91
7.0.50.0000.04317.66
7.0.40.0100.08020.06
7.0.30.0500.06320.02
7.0.20.0330.04720.09
7.0.10.0200.05020.00
7.0.00.0100.05720.08
5.6.280.0070.07021.13
5.6.210.0100.07020.58
5.6.200.0070.06318.09
5.6.190.0070.04020.46
5.6.180.0200.03720.36
5.6.170.0300.08020.48
5.6.160.0230.04320.47
5.6.150.0100.03718.16
5.6.140.0000.04318.12
5.6.130.0100.05318.11
5.6.120.0100.08020.99
5.6.110.0030.07020.99
5.6.100.0130.08021.13
5.6.90.0100.07720.96
5.6.80.0030.03720.24
5.6.70.0200.07720.46
5.5.350.0330.05320.31
5.5.340.0030.03717.95
5.5.330.0000.04320.20
5.5.320.0030.06020.29
5.5.310.0170.06020.24
5.5.300.0030.08717.98
5.5.290.0070.08018.00
5.5.280.0100.05720.75
5.5.270.0170.07020.64
5.5.260.0170.05320.85
5.5.250.0030.04020.68
5.5.240.0070.07020.36
5.4.450.0330.05019.14
5.4.440.0300.05019.54
5.4.430.0230.05319.28
5.4.420.0100.06019.60
5.4.410.0170.05718.91
5.4.400.0370.04718.58
5.4.390.0430.05318.72
5.4.380.0570.05318.70
5.4.370.0300.06718.73
5.4.360.0430.06318.72
5.4.350.0630.07718.58
5.4.340.0530.06318.56
5.4.320.0430.08018.49
5.4.310.0430.07718.68
5.4.300.0400.08318.56
5.4.290.0370.08018.48
5.4.280.0470.05718.70
5.4.270.0400.06018.69
5.4.260.0470.06018.70
5.4.250.0370.07318.52
5.4.240.0470.07018.61
5.4.230.0470.06318.61
5.4.220.0400.06718.55
5.4.210.0430.06018.59
5.4.200.0430.05716.50
5.4.190.0500.07318.55
5.4.180.0470.06318.68
5.4.170.0430.05318.74
5.4.160.0530.06718.66
5.4.150.0300.08718.59
5.4.140.0500.06716.36
5.4.130.0400.04716.32
5.4.120.0430.05716.16
5.4.110.0230.06316.31
5.4.100.0430.07016.03
5.4.90.0470.06316.30
5.4.80.0630.05016.10
5.4.70.0530.07316.29
5.4.60.0500.06016.13
5.4.50.0300.06716.30
5.4.40.0530.06016.03
5.4.30.0430.06716.22
5.4.20.0370.06716.04
5.4.10.0470.03716.22
5.4.00.0300.05715.75
5.3.290.0400.07314.59
5.3.280.0530.05014.50
5.3.270.0400.05314.57
5.3.260.0400.05014.59
5.3.250.0500.07014.51
5.3.240.0530.07014.49
5.3.230.0270.06714.59
5.3.220.0270.06314.67
5.3.210.0400.06714.56
5.3.200.0470.05014.58
5.3.190.0400.05714.46
5.3.180.0330.06314.47
5.3.170.0330.05714.61
5.3.160.0470.05314.52
5.3.150.0400.05314.59
5.3.140.0270.05014.51
5.3.130.0270.07014.43
5.3.120.0300.05314.57
5.3.110.0270.06014.52
5.3.100.0200.06714.00
5.3.90.0500.05013.98
5.3.80.0470.05714.09
5.3.70.0170.06714.01
5.3.60.0170.07013.91
5.3.50.0500.04313.86
5.3.40.0330.05314.03
5.3.30.0300.05013.80
5.3.20.0400.04713.77
5.3.10.0200.05713.64
5.3.00.0330.05013.54
5.2.170.0300.04011.13
5.2.160.0230.04311.09
5.2.150.0130.05711.18
5.2.140.0230.04711.10
5.2.130.0130.07311.10
5.2.120.0230.06311.07
5.2.110.0300.05311.07
5.2.100.0470.03311.24
5.2.90.0270.04311.09
5.2.80.0430.05011.05
5.2.70.0330.06311.01
5.2.60.0230.05311.10
5.2.50.0230.04311.04
5.2.40.0270.05710.91
5.2.30.0200.04710.90
5.2.20.0230.04710.89
5.2.10.0400.04311.00
5.2.00.0300.04310.77
5.1.60.0200.03710.04
5.1.50.0270.03310.11
5.1.40.0170.03710.09
5.1.30.0300.03310.39
5.1.20.0300.03310.39
5.1.10.0170.04310.09
5.1.00.0170.04010.16
5.0.50.0100.0338.61
5.0.40.0100.0278.46
5.0.30.0100.0538.19
5.0.20.0100.0308.28
5.0.10.0170.0308.16
5.0.00.0130.0478.18
4.4.90.0130.0175.95
4.4.80.0130.0175.90
4.4.70.0130.0205.88
4.4.60.0030.0275.91
4.4.50.0200.0205.91
4.4.40.0100.0375.89
4.4.30.0130.0205.88
4.4.20.0130.0235.98
4.4.10.0170.0205.88
4.4.00.0100.0475.91
4.3.110.0170.0275.84
4.3.100.0230.0275.80
4.3.90.0070.0335.77
4.3.80.0070.0575.78
4.3.70.0130.0275.87
4.3.60.0200.0235.89
4.3.50.0100.0335.80
4.3.40.0100.0375.79
4.3.30.0070.0304.63
4.3.20.0030.0304.53
4.3.10.0030.0234.52
4.3.00.0100.0236.68