3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = ''; $b = null; $c = false; var_dump('' === $a, '' === $b, '' === $c, empty($b), empty($c));

Here you find the average performance (time & memory) of each version. A greyed 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.0130.00819.41
7.1.100.0060.00917.99
7.1.70.0040.00817.20
7.1.60.0100.01019.46
7.1.50.0030.02116.86
7.1.00.0000.08022.44
7.0.200.0040.00416.66
7.0.140.0000.03721.94
7.0.60.0170.07720.06
7.0.50.0030.08717.83
7.0.40.0100.08020.05
7.0.30.0230.05720.01
7.0.20.0330.04720.29
7.0.10.0030.05320.31
7.0.00.0170.07720.18
5.6.280.0030.07321.02
5.6.210.0070.07320.72
5.6.200.0100.06718.18
5.6.190.0030.08720.41
5.6.180.0300.08020.33
5.6.170.0200.08720.46
5.6.160.0100.08020.61
5.6.150.0030.04718.16
5.6.140.0100.07318.11
5.6.130.0000.04318.16
5.6.120.0270.02721.14
5.6.110.0100.07321.08
5.6.100.0100.09321.00
5.6.90.0070.08020.98
5.6.80.0130.04720.48
5.5.350.4230.04320.32
5.5.340.0130.04317.98
5.5.330.0000.04320.22
5.5.320.2830.03720.24
5.5.310.0400.06720.17
5.5.300.0030.03717.91
5.5.290.0130.06718.01
5.5.280.0070.09020.76
5.5.270.0070.08020.84
5.5.260.0230.04720.88
5.5.250.0070.08020.70
5.5.240.0070.07720.16
5.4.450.0430.05719.29
5.4.440.0630.07019.24
5.4.430.0000.07019.68
5.4.420.0070.06019.46
5.4.410.0100.06319.41
5.4.400.0130.05719.24
5.4.390.0230.05318.55
5.4.380.0200.06018.43
5.4.370.0200.05318.48
5.4.360.0230.06718.72
5.4.350.0300.05318.74
5.4.340.0100.06018.58
5.4.320.0170.05318.71
5.4.310.0130.05318.55
5.4.300.0400.04318.62
5.4.290.0130.05718.64
5.4.280.0370.05718.48
5.4.270.0170.05318.63
5.4.260.0100.06018.48
5.4.250.0100.06318.73
5.4.240.0100.06018.55
5.4.230.0170.05018.70
5.4.220.0200.05018.55
5.4.210.0130.06018.64
5.4.200.0200.05316.51
5.4.190.0170.05318.70
5.4.180.0130.06318.72
5.4.170.0270.04718.70
5.4.160.0130.05718.46
5.4.150.0100.06018.63
5.4.140.0270.04316.25
5.4.130.0170.05016.21
5.4.120.0100.05716.13
5.4.110.0230.06016.12
5.4.100.0270.06016.29
5.4.90.0270.06016.29
5.4.80.0200.06716.19
5.4.70.0230.06316.32
5.4.60.0200.04716.12
5.4.50.0170.04716.12
5.4.40.0200.05716.36
5.4.30.0230.04316.13
5.4.20.0130.06316.32
5.4.10.0070.06016.21
5.4.00.0230.04315.60
5.3.290.0130.06714.75
5.3.280.0170.05014.58
5.3.270.0200.05014.67
5.3.260.0170.05314.58
5.3.250.0200.04714.53
5.3.240.0270.04314.57
5.3.230.0200.05314.52
5.3.220.0100.06014.49
5.3.210.0130.05714.54
5.3.200.0130.06014.61
5.3.190.0170.06014.49
5.3.180.0130.06714.52
5.3.170.0270.06314.56
5.3.160.0070.06014.53
5.3.150.0130.07714.53
5.3.140.0230.04314.50
5.3.130.0170.05014.47
5.3.120.0100.06014.53
5.3.110.0200.05714.50
5.3.100.0100.06313.98
5.3.90.0130.05314.01
5.3.80.0130.06013.96
5.3.70.0170.05314.01
5.3.60.0070.06313.91
5.3.50.0130.05714.04
5.3.40.0170.05013.95
5.3.30.0200.04313.85
5.3.20.0200.06313.65
5.3.10.0200.04713.61
5.3.00.0170.05013.55
5.2.170.0070.05011.10
5.2.160.0130.04011.19
5.2.150.0170.03711.14
5.2.140.0270.03711.14
5.2.130.0300.03311.23
5.2.120.0070.04711.07
5.2.110.0100.04311.13
5.2.100.0130.04011.26
5.2.90.0200.03311.03
5.2.80.0170.03711.14
5.2.70.0030.05311.10
5.2.60.0130.04011.18
5.2.50.0100.04311.07
5.2.40.0030.04711.04
5.2.30.0130.04010.99
5.2.20.0070.04710.95
5.2.10.0130.04010.90
5.2.00.0130.04010.74
5.1.60.0130.0309.95
5.1.50.0100.03310.00
5.1.40.0100.0409.99
5.1.30.0100.04310.39
5.1.20.0130.03710.50
5.1.10.0070.03710.01
5.1.00.0100.03310.18
5.0.50.0100.0278.57
5.0.40.0070.0278.48
5.0.30.0070.0438.24
5.0.20.0070.0278.21
5.0.10.0070.0278.20
5.0.00.0170.0338.18
4.4.90.0000.0275.93
4.4.80.0070.0205.89
4.4.70.0070.0205.87
4.4.60.0070.0205.90
4.4.50.0070.0205.91
4.4.40.0100.0305.82
4.4.30.0070.0205.89
4.4.20.0100.0175.87
4.4.10.0030.0235.95
4.4.00.0070.0335.98
4.3.110.0030.0235.81
4.3.100.0000.0275.83
4.3.90.0070.0205.78
4.3.80.0130.0275.79
4.3.70.0070.0205.79
4.3.60.0070.0205.77
4.3.50.0070.0205.86
4.3.40.0100.0375.76
4.3.30.0000.0274.55
4.3.20.0100.0234.57
4.3.10.0030.0204.48
4.3.00.0130.02312.54