3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dis = false; $dat = true; $truthiness = $dis and $dat; var_dump($truthiness); $truthiness = $dis && $dat; var_dump($truthiness);
based on LcBCn

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.0170.00716.64
7.3.00.0090.00616.38
7.2.130.0080.00816.66
7.2.120.0090.00616.71
7.2.110.0080.00816.84
7.2.100.0030.01216.80
7.2.90.0110.00016.66
7.2.80.0090.00616.73
7.2.70.0030.01016.99
7.2.60.0140.00816.69
7.2.50.0080.00816.80
7.2.40.0070.00316.82
7.2.30.0120.00316.38
7.2.20.0000.01517.00
7.2.10.0040.00716.80
7.2.00.0060.00417.99
7.1.250.0060.00815.66
7.1.200.0030.01015.86
7.1.100.0060.00618.17
7.1.70.0000.00716.95
7.1.60.0120.01219.29
7.1.50.0090.00616.55
7.1.00.0100.07022.43
7.0.200.0040.00416.78
7.0.140.0000.05722.13
7.0.60.0000.09020.00
7.0.50.0070.05017.91
7.0.40.0000.08020.21
7.0.30.0270.07320.21
7.0.20.0330.05720.10
7.0.10.0130.07720.20
7.0.00.0200.07320.22
5.6.280.0070.06721.07
5.6.210.0100.03720.47
5.6.200.0070.04018.22
5.6.190.0100.07020.59
5.6.180.0200.05720.34
5.6.170.0330.05020.41
5.6.160.0130.07720.59
5.6.150.0070.08318.16
5.6.140.0070.08018.13
5.6.130.0030.08718.18
5.6.120.0100.04721.11
5.6.110.0030.08021.02
5.6.100.0130.08020.92
5.6.90.0170.08321.02
5.6.80.0130.06720.33
5.5.350.0230.06720.38
5.5.340.0070.06717.89
5.5.330.0070.03720.19
5.5.320.0430.05720.27
5.5.310.0300.06320.23
5.5.300.0100.05017.98
5.5.290.0070.04318.01
5.5.280.0070.04320.78
5.5.270.0030.06320.77
5.5.260.0030.04320.86
5.5.250.0030.04320.69
5.5.240.0100.07320.25
5.4.450.0330.05319.10
5.4.440.0770.06019.59
5.4.430.0170.05019.32
5.4.420.0070.06319.29
5.4.410.0130.04719.31
5.4.400.0100.05019.02
5.4.390.0100.05019.09
5.4.380.0170.06318.41
5.4.370.0170.05318.65
5.4.360.0230.04718.59
5.4.350.0130.05013.65
5.4.340.0130.04313.72
5.4.320.0100.04314.16
5.4.310.0170.04014.20
5.4.300.0100.04014.20
5.4.290.0070.04314.36
5.4.280.0170.03014.11
5.4.270.0130.03714.03
5.4.260.0170.03314.10
5.4.250.0170.03314.09
5.4.240.0030.04314.05
5.4.230.0100.03714.05
5.4.220.0130.03314.02
5.4.210.0170.02714.04
5.4.200.0100.04014.01
5.4.190.0100.03714.08
5.4.180.0070.04014.04
5.4.170.0070.04014.09
5.4.160.0100.04014.04
5.4.150.0130.03314.09
5.4.140.0100.03713.70
5.4.130.0030.04313.74
5.4.120.0070.04013.83
5.4.110.0130.03313.64
5.4.100.0130.03313.71
5.4.90.0070.04013.64
5.4.80.0100.04313.64
5.4.70.0130.03313.73
5.4.60.0130.03013.79
5.4.50.0100.03713.69
5.4.40.0070.03713.76
5.4.30.0030.04013.69
5.4.20.0200.03313.62
5.4.10.0100.04013.69
5.4.00.0130.03313.13
5.3.290.0030.04714.63
5.3.280.0130.03314.59
5.3.270.0000.05014.53
5.3.260.0130.04014.50
5.3.250.0230.02714.54
5.3.240.0100.03714.60
5.3.230.0170.03014.56
5.3.220.0130.03314.48
5.3.210.0070.04714.41
5.3.200.0130.03314.48
5.3.190.0100.03714.48
5.3.180.0130.03314.48
5.3.170.0070.04014.45
5.3.160.0070.04014.41
5.3.150.0130.03314.41
5.3.140.0130.03314.39
5.3.130.0030.05014.39
5.3.120.0130.03714.43
5.3.110.0100.04014.43
5.3.100.0070.04014.00
5.3.90.0070.04014.06
5.3.80.0100.03713.88
5.3.70.0100.03713.90
5.3.60.0070.04013.94
5.3.50.0100.04013.87
5.3.40.0100.03713.89
5.3.30.0100.03713.84
5.3.20.0100.04013.68
5.3.10.0130.03313.59
5.3.00.0130.03313.48
5.2.170.0130.03711.07
5.2.160.0200.02011.03
5.2.150.0130.03011.19
5.2.140.0230.03311.06
5.2.130.0170.02311.02
5.2.120.0100.02711.07
5.2.110.0130.02711.15
5.2.100.0100.03310.95
5.2.90.0070.03311.03
5.2.80.0030.04011.06
5.2.70.0170.03011.07
5.2.60.0170.04311.02
5.2.50.0100.03310.86
5.2.40.0170.02710.84
5.2.30.0070.04011.04
5.2.20.0070.03011.06
5.2.10.0000.03710.83
5.2.00.0100.02710.63
5.1.60.0130.02710.03
5.1.50.0030.0309.99
5.1.40.0100.0279.89
5.1.30.0070.02710.28
5.1.20.0030.03010.38
5.1.10.0070.02710.05
5.1.00.0070.02710.12
5.0.50.0070.0178.60
5.0.40.0000.0238.49
5.0.30.0030.0338.25
5.0.20.0000.0238.15
5.0.10.0000.0238.35
5.0.00.0030.0338.11
4.4.90.0030.0135.85
4.4.80.0070.0135.82
4.4.70.0000.0205.83
4.4.60.0000.0205.80
4.4.50.0000.0235.86
4.4.40.0000.0335.83
4.4.30.0030.0175.82
4.4.20.0030.0175.89
4.4.10.0000.0205.98
4.4.00.0030.0275.85
4.3.110.0030.0175.73
4.3.100.0000.0205.77
4.3.90.0000.0205.76
4.3.80.0000.0305.74
4.3.70.0070.0135.82
4.3.60.0000.0205.75
4.3.50.0000.0235.76
4.3.40.0000.0305.81
4.3.30.0000.0204.49
4.3.20.0070.0134.47
4.3.10.0000.0204.60
4.3.00.0170.0176.69