3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $t = empty($_GET['t2']) ? $_GET['t2'] : 'test'; $t = empty($_GET['t2']) ? 'test' : $_GET['t2']; echo '<pre>'.print_r($t, true).'</pre>';

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.0rc40.0180.00498.97
7.3.0rc30.0200.00416.55
7.3.0beta10.0100.00012.59
7.3.0alpha10.0030.00612.58
7.2.60.0070.01016.86
7.2.00.0070.00319.28
7.1.200.0090.00315.87
7.1.100.0030.01018.05
7.1.70.0000.00816.80
7.1.60.0110.01419.82
7.1.50.0090.00616.62
7.1.00.0070.07322.44
7.0.200.0000.00716.57
7.0.140.0030.07322.08
7.0.60.0170.07719.97
7.0.50.0030.04317.84
7.0.40.0170.07720.23
7.0.30.0330.07720.30
7.0.20.0270.06320.13
7.0.10.0030.04720.11
7.0.00.0100.03720.09
5.6.280.0000.07720.92
5.6.210.0030.07720.52
5.6.200.0100.03718.15
5.6.190.0130.08020.40
5.6.180.0430.05720.39
5.6.170.0200.04320.50
5.6.160.0070.08020.40
5.6.150.0070.08018.11
5.6.140.0100.08018.11
5.6.130.0170.07318.11
5.6.120.0170.07320.99
5.6.110.0070.08321.02
5.6.100.0130.07721.00
5.6.90.0100.06720.99
5.6.80.0100.05720.37
5.5.350.0030.07720.40
5.5.340.0000.05017.92
5.5.330.0130.07320.37
5.5.320.0070.03320.18
5.5.310.0330.05020.17
5.5.300.0170.06318.01
5.5.290.0030.04318.02
5.5.280.0030.04020.86
5.5.270.0130.08020.88
5.5.260.0030.07320.63
5.5.250.0100.05020.68
5.5.240.0170.07720.14
5.4.450.0500.07019.24
5.4.440.0330.04019.25
5.4.430.0300.04019.25
5.4.420.0300.04319.56
5.4.410.0370.04319.31
5.4.400.0300.04019.08
5.4.390.0430.02719.09
5.4.380.0330.03318.88
5.4.370.0400.03319.24
5.4.360.0330.03319.06
5.4.350.0400.03318.91
5.4.340.0330.03718.89
5.4.320.0370.03719.08
5.4.310.0400.02719.09
5.4.300.0330.04319.07
5.4.290.0330.04018.93
5.4.280.0300.03719.13
5.4.270.0300.03719.10
5.4.260.0370.03019.15
5.4.250.0300.03719.07
5.4.240.0370.04018.91
5.4.230.0470.03719.09
5.4.220.0400.06319.09
5.4.210.0330.04019.21
5.4.200.0370.05319.07
5.4.190.0500.03019.07
5.4.180.0300.05319.21
5.4.170.0430.05718.90
5.4.160.0400.03318.90
5.4.150.0300.04719.23
5.4.140.0430.05016.55
5.4.130.0530.05716.45
5.4.120.0370.04016.37
5.4.110.0370.04016.43
5.4.100.0530.06016.31
5.4.90.0530.03716.22
5.4.80.0630.02316.32
5.4.70.0370.05016.19
5.4.60.0430.05016.45
5.4.50.0430.03716.39
5.4.40.0370.03716.41
5.4.30.0370.06316.20
5.4.20.0330.03316.36
5.4.10.0430.06716.33
5.4.00.0430.06315.99
5.3.290.0370.04014.57
5.3.280.0330.04014.42
5.3.270.0430.04314.70
5.3.260.0370.04014.45
5.3.250.0430.04014.59
5.3.240.0470.04314.51
5.3.230.0470.04714.54
5.3.220.0600.03014.42
5.3.210.0370.04014.59
5.3.200.0470.06014.44
5.3.190.0330.04314.44
5.3.180.0570.03314.43
5.3.170.0470.05314.50
5.3.160.0370.03314.39
5.3.150.0370.05714.39
5.3.140.0270.04714.39
5.3.130.0400.07014.64
5.3.120.0300.03714.57
5.3.110.0370.04314.39
5.3.100.0500.06013.98
5.3.90.0470.03713.98
5.3.80.0330.06314.07
5.3.70.0400.04713.93
5.3.60.0300.04013.86
5.3.50.0270.05013.74
5.3.40.0370.03014.04
5.3.30.0370.03313.69
5.3.20.0400.06313.49
5.3.10.0330.03313.61
5.3.00.0470.06013.48
5.2.170.0270.03711.20
5.2.160.0400.02311.00
5.2.150.0370.05311.16
5.2.140.0230.03711.30
5.2.130.0400.05310.95
5.2.120.0300.05711.06
5.2.110.0330.03310.96
5.2.100.0270.03011.04
5.2.90.0400.05011.04
5.2.80.0330.03011.04
5.2.70.0370.04311.12
5.2.60.0230.03711.14
5.2.50.0270.04010.96
5.2.40.0300.05310.84
5.2.30.0470.04310.84
5.2.20.0200.03310.86
5.2.10.0330.02710.88
5.2.00.0230.03310.64
5.1.60.0270.0309.99
5.1.50.0330.0339.86
5.1.40.0400.0239.99
5.1.30.0400.04310.30
5.1.20.0300.03010.32
5.1.10.0270.0309.93
5.1.00.0270.0339.96
5.0.50.0170.0339.63
5.0.40.0170.0439.63
5.0.30.0230.0579.63
5.0.20.0230.0379.63
5.0.10.0170.0279.63
5.0.00.0130.0579.63
4.4.90.0300.0239.63
4.4.80.0100.0179.63
4.4.70.0200.0339.63
4.4.60.0130.0279.63
4.4.50.0130.0239.63
4.4.40.0170.0539.63
4.4.30.0230.0209.63
4.4.20.0130.0209.63
4.4.10.0230.0239.63
4.4.00.0230.0379.63
4.3.110.0130.0209.63
4.3.100.0270.0309.63
4.3.90.0300.0309.63
4.3.80.0230.0439.63
4.3.70.0200.0309.63
4.3.60.0170.0279.63
4.3.50.0130.0239.63
4.3.40.0200.0339.63
4.3.30.0070.0209.63
4.3.20.0070.0279.63
4.3.10.0070.0309.63
4.3.00.0100.0339.63