3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function a() { print("A"); return true; } function b() { print("B"); return false; } var_dump((boolean)(intval(a()) | intval(b()))); var_dump((boolean)(intval(a()) & intval(b())));

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.0140.00398.97
7.3.0rc30.0060.01516.60
7.3.0beta10.0120.00312.75
7.3.0alpha10.0050.00512.80
7.2.60.0030.00617.05
7.1.200.0090.00015.68
7.1.100.0030.00617.84
7.1.70.0060.00316.93
7.1.60.0060.00617.14
7.1.50.0000.01316.62
7.1.00.0070.03022.49
7.0.200.0000.01016.73
7.0.140.0000.07721.92
7.0.60.0200.07721.84
7.0.50.0070.03717.86
7.0.40.0270.08320.24
7.0.30.0230.04020.40
7.0.20.0270.07720.23
7.0.10.0330.07320.20
7.0.00.0230.05320.20
5.6.280.0030.07321.07
5.6.210.0100.07720.75
5.6.200.0170.07718.28
5.6.190.0270.05320.52
5.6.180.0230.07320.61
5.6.170.0230.03720.46
5.6.160.0200.08020.64
5.6.150.0230.05320.37
5.6.140.0370.06320.17
5.6.130.0400.04720.40
5.6.120.0270.08020.57
5.6.110.0330.07020.31
5.6.100.0230.04320.51
5.6.90.0230.06720.18
5.6.80.0170.04319.76
5.6.70.0200.03719.88
5.6.60.0230.07719.78
5.6.50.0200.07719.56
5.6.40.0370.06719.54
5.6.30.0170.07319.70
5.6.20.0230.07719.86
5.6.10.0230.07319.86
5.6.00.0230.07319.87
5.5.350.0000.09020.30
5.5.340.0030.08318.05
5.5.330.0330.06720.57
5.5.320.0270.05020.57
5.5.310.0170.04320.25
5.5.300.0270.07020.05
5.5.290.0200.04720.33
5.5.280.0370.06719.97
5.5.270.0300.07720.13
5.5.260.0230.08020.11
5.5.250.0200.05019.93
5.5.240.0230.04319.63
5.5.230.0370.07319.36
5.5.220.0300.07019.62
5.5.210.0300.07019.35
5.5.200.0200.06319.49
5.5.190.0270.07319.34
5.5.180.0230.08019.32
5.5.160.0130.06319.59
5.5.150.0270.07719.49
5.5.140.0370.05319.32
5.5.130.0230.07719.52
5.5.120.0170.04719.67
5.5.110.0300.04719.31
5.5.100.0330.05019.23
5.5.90.0230.06019.55
5.5.80.0300.03019.23
5.5.70.0270.04719.39
5.5.60.0270.07019.39
5.5.50.0300.04019.54
5.5.40.0230.07719.47
5.5.30.0230.07319.46
5.5.20.0200.08319.21
5.5.10.0300.04719.50
5.5.00.0230.05019.59
5.4.450.0270.03719.58
5.4.440.0300.06019.41
5.4.430.0200.06319.20
5.4.420.0230.04019.53
5.4.410.0200.04319.34
5.4.400.0130.04719.13
5.4.390.0230.06719.00
5.4.380.0230.06719.12
5.4.370.0300.06019.25
5.4.360.0170.06719.21
5.4.350.0230.06319.16
5.4.340.0170.06719.15
5.4.320.0230.06319.15
5.4.310.0330.06719.25
5.4.300.0270.07019.12
5.4.290.0230.07019.07
5.4.280.0200.07019.15
5.4.270.0170.03718.98
5.4.260.0230.07019.15
5.4.250.0330.05718.85
5.4.240.0230.06719.24
5.4.230.0230.04719.23
5.4.220.0230.04719.18
5.4.210.0270.04018.87
5.4.200.0200.03719.24
5.4.190.0300.03719.14
5.4.180.0270.05019.23
5.4.170.0230.04719.15
5.4.160.0200.07718.96
5.4.150.0270.05318.86
5.4.140.0200.03716.48
5.4.130.0270.04716.34
5.4.120.0270.07016.51
5.4.110.0230.07316.48
5.4.100.0330.05316.39
5.4.90.0200.03716.59
5.4.80.0270.06016.41
5.4.70.0170.04316.43
5.4.60.0270.04316.41
5.4.50.0230.07016.40
5.4.40.0270.04716.40
5.4.30.0200.05716.39
5.4.20.0230.04316.40
5.4.10.0200.06716.34
5.4.00.0230.06715.84
5.3.290.0200.05714.59
5.3.280.0200.04314.63
5.3.270.0200.04314.66
5.3.260.0230.05014.66
5.3.250.0200.06014.61
5.3.240.0270.05714.75
5.3.230.0270.07014.61
5.3.220.0200.06714.59
5.3.210.0300.07014.56
5.3.200.0230.05714.63
5.3.190.0230.07014.72
5.3.180.0300.05014.57
5.3.170.0200.04014.60
5.3.160.0270.04014.71
5.3.150.0200.07014.72
5.3.140.0130.04714.55
5.3.130.0230.05014.58
5.3.120.0200.07714.44
5.3.110.0300.06014.47
5.3.100.0270.04014.09
5.3.90.0200.04313.91
5.3.80.0330.04313.96
5.3.70.0200.04714.07
5.3.60.0170.06014.06
5.3.50.0330.03313.92
5.3.40.0370.03713.90
5.3.30.0330.05713.92
5.3.20.0200.05313.86
5.3.10.0170.06013.86
5.3.00.0230.06313.86
5.2.170.0170.04013.86
5.2.160.0170.06013.86
5.2.150.0200.04713.86
5.2.140.0200.06313.86
5.2.130.0170.06013.86
5.2.120.0230.04013.86
5.2.110.0200.05013.86
5.2.100.0200.03713.86
5.2.90.0270.03713.86
5.2.80.0300.04313.86
5.2.70.0130.04313.86
5.2.60.0200.03713.86
5.2.50.0100.05013.86
5.2.40.0130.06313.86
5.2.30.0130.06013.86
5.2.20.0230.03713.86
5.2.10.0230.03313.86
5.2.00.0170.05313.86
5.1.60.0200.04013.86
5.1.50.0100.06013.90
5.1.40.0230.04013.90
5.1.30.0230.05013.90
5.1.20.0270.04313.90
5.1.10.0200.05013.90
5.1.00.0170.04313.90
5.0.50.0070.03313.90
5.0.40.0100.04013.90
5.0.30.0000.06013.90
5.0.20.0070.04713.90
5.0.10.0100.03013.90
5.0.00.0100.06013.90
4.4.90.0070.01713.86
4.4.80.0070.03713.86
4.4.70.0070.03313.86
4.4.60.0070.03713.86
4.4.50.0070.03713.86
4.4.40.0100.03313.90
4.4.30.0070.03713.90
4.4.20.0170.02313.90
4.4.10.0100.03713.90
4.4.00.0100.05313.90
4.3.110.0100.03313.90
4.3.100.0100.03013.90
4.3.90.0100.02313.90
4.3.80.0130.03313.90
4.3.70.0070.03713.90
4.3.60.0070.02013.90
4.3.50.0070.01713.90
4.3.40.0030.02713.90
4.3.30.0000.01713.90
4.3.20.0030.01713.90
4.3.10.0030.03713.90
4.3.00.0030.02313.90