3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $check = null; $check = $check ?: 'lol'; var_dump($check);
based on aAsiE

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.0000.01516.58
7.2.00.0080.00319.24
7.1.200.0070.00315.91
7.1.100.0030.01018.23
7.1.70.0060.00317.11
7.1.60.0130.01019.46
7.1.50.0030.01616.91
7.1.00.0100.07022.57
7.0.200.0130.00314.55
7.0.140.0030.07322.00
7.0.60.0100.08019.80
7.0.50.0100.04717.82
7.0.40.0100.07720.40
7.0.30.0330.05320.34
7.0.20.0300.04320.17
7.0.10.0070.05720.21
7.0.00.0000.04720.20
5.6.280.0070.07021.06
5.6.210.0170.07020.47
5.6.200.0200.06718.17
5.6.190.0100.08720.45
5.6.180.2700.04020.35
5.6.170.0230.08020.39
5.6.160.0100.04020.46
5.6.150.0000.04318.18
5.6.140.0030.04018.18
5.6.130.0170.07718.11
5.6.120.0030.07321.00
5.6.110.0030.07020.94
5.6.100.0000.04320.95
5.6.90.0000.04321.02
5.6.80.0100.06020.53
5.6.70.4570.03320.39
5.5.350.0370.07020.43
5.5.340.0070.07317.93
5.5.330.0130.07020.07
5.5.320.0200.08320.31
5.5.310.0330.05320.17
5.5.300.0030.08717.98
5.5.290.0100.08018.00
5.5.280.0070.04020.96
5.5.270.0230.03320.96
5.5.260.0070.08720.88
5.5.250.0230.06720.79
5.5.240.0200.07020.18
5.4.450.0570.06019.54
5.4.440.1130.04319.63
5.4.430.0230.05719.63
5.4.420.0830.05319.24
5.4.410.0870.07019.39
5.4.400.1000.06019.15
5.4.390.0230.05018.68
5.4.380.0070.06018.59
5.4.370.0230.05018.61
5.4.360.0130.06018.64
5.4.350.0270.05318.53
5.4.340.0200.05318.67
5.4.320.0070.07318.71
5.4.310.0230.05018.50
5.4.300.0200.05318.46
5.4.290.0170.05318.61
5.4.280.0200.05018.68
5.4.270.0270.05718.67
5.4.260.0100.05718.69
5.4.250.0200.05018.71
5.4.240.0230.05018.73
5.4.230.0170.05318.76
5.4.220.0130.05718.68
5.4.210.0170.05318.72
5.4.200.0170.05016.53
5.4.190.0130.05718.59
5.4.180.0130.05718.68
5.4.170.0130.05718.68
5.4.160.0170.05318.59
5.4.150.0130.06018.59
5.4.140.0270.04716.04
5.4.130.0130.05316.35
5.4.120.0270.04016.25
5.4.110.0200.04716.12
5.4.100.0200.04716.25
5.4.90.0130.05716.24
5.4.80.0170.05016.14
5.4.70.0100.05716.19
5.4.60.0170.05316.04
5.4.50.0130.05016.09
5.4.40.0170.05016.19
5.4.30.0100.05316.07
5.4.20.0330.03316.02
5.4.10.0130.05016.28
5.4.00.0170.04715.61
5.3.290.0200.06014.66
5.3.280.0170.05014.52
5.3.270.0100.06714.51
5.3.260.0100.06314.70
5.3.250.0300.03714.69
5.3.240.0100.06314.59
5.3.230.0270.04314.59
5.3.220.0230.04314.47
5.3.210.0030.06714.65
5.3.200.0300.04314.48
5.3.190.0230.04714.55
5.3.180.0200.06014.52
5.3.170.0270.04314.54
5.3.160.0300.06014.65
5.3.150.0200.05014.61
5.3.140.0170.05314.48
5.3.130.0170.06314.43
5.3.120.0170.06714.54
5.3.110.0200.06014.62
5.3.100.0130.06314.04
5.3.90.0270.06013.93
5.3.80.0130.06013.96
5.3.70.0300.05013.91
5.3.60.0170.05313.98
5.3.50.0070.06013.88
5.3.40.0200.04713.91
5.3.30.0130.05313.88
5.3.20.0070.06013.78
5.3.10.0130.05013.64
5.3.00.0200.04713.66
5.2.170.0100.04711.11
5.2.160.0070.04711.13
5.2.150.0130.04311.29
5.2.140.0130.04311.09
5.2.130.0170.06011.23
5.2.120.0130.05311.06
5.2.110.0200.05011.16
5.2.100.0200.05011.14
5.2.90.0100.04311.11
5.2.80.0230.03311.14
5.2.70.0170.04311.08
5.2.60.0130.04311.09
5.2.50.0170.04010.97
5.2.40.0070.04711.05
5.2.30.0070.04310.91
5.2.20.0070.04310.95
5.2.10.0100.04310.87
5.2.00.0130.03710.74
5.1.60.0030.04310.06
5.1.50.0030.04010.11
5.1.40.0070.03710.10
5.1.30.0030.04310.31
5.1.20.0100.03710.39
5.1.10.0170.04010.20
5.1.00.0070.04010.12
5.0.50.0030.0338.61
5.0.40.0000.0338.44
5.0.30.0200.0338.22
5.0.20.0070.0278.22
5.0.10.0070.0308.19
5.0.00.0100.0408.34
4.4.90.0030.0275.93
4.4.80.0100.0205.86
4.4.70.0030.0235.86
4.4.60.0000.0275.87
4.4.50.0070.0205.91
4.4.40.0100.0305.87
4.4.30.0070.0205.85
4.4.20.0030.0235.92
4.4.10.0030.0235.88
4.4.00.0100.0305.93
4.3.110.0100.0175.85
4.3.100.0070.0205.80
4.3.90.0030.0235.82
4.3.80.0070.0305.86
4.3.70.0100.0175.86
4.3.60.0100.0205.89
4.3.50.0070.0205.82
4.3.40.0070.0335.77
4.3.30.0000.0274.64
4.3.20.0000.0234.51
4.3.10.0000.0234.47
4.3.00.0030.03314.52