3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = (object) ["a" => "b"]; $b = (object) ["b" => "b"]; var_dump($a > $b); // 0
based on gAM4U

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.0040.00716.64
7.2.00.0030.01019.39
7.1.200.0030.00615.70
7.1.100.0060.00617.88
7.1.70.0040.01117.05
7.1.60.0040.02119.46
7.1.50.0160.01634.84
7.1.00.0000.08022.34
7.0.200.0070.00316.46
7.0.140.0000.04722.08
7.0.100.0100.03319.90
7.0.90.0100.04319.89
7.0.80.0070.04019.88
7.0.70.0100.05719.91
7.0.60.0200.02719.94
7.0.50.0200.03320.32
7.0.40.0130.03020.02
7.0.30.0030.05020.11
7.0.20.0130.05020.04
7.0.10.0070.03320.10
7.0.00.0030.04320.14
5.6.280.0030.07321.13
5.6.250.0000.04320.56
5.6.240.0030.05320.50
5.6.230.0030.04320.59
5.6.220.0000.04720.57
5.6.210.0070.04020.48
5.6.200.0000.04321.05
5.6.190.0030.04721.11
5.6.180.0070.03321.03
5.6.170.0030.04321.10
5.6.160.0070.04020.94
5.6.150.0070.04020.95
5.6.140.0030.04321.01
5.6.130.0100.02720.94
5.6.120.0030.03721.05
5.6.110.0000.04321.00
5.6.100.0070.04321.07
5.6.90.0130.03721.02
5.6.80.0030.04720.31
5.6.70.0030.04020.39
5.6.60.0070.03720.42
5.6.50.0100.05020.39
5.6.40.0030.06020.38
5.6.30.0100.06020.41
5.6.20.0070.07320.39
5.6.10.0130.07720.42
5.6.00.0070.07720.51
5.5.380.0070.04320.34
5.5.370.0100.03320.54
5.5.360.0070.03720.33
5.5.350.0030.04320.36
5.5.340.0100.03720.82
5.5.330.0030.03720.80
5.5.320.0030.04020.75
5.5.310.0030.03720.81
5.5.300.0100.03320.72
5.5.290.0170.04020.89
5.5.280.0070.03320.89
5.5.270.0170.03020.81
5.5.260.0000.04720.63
5.5.250.0000.03720.58
5.5.240.0030.04020.09
5.5.230.0030.04320.28
5.5.220.0030.05720.22
5.5.210.0070.07320.29
5.5.200.0000.08320.27
5.5.190.0070.06720.25
5.5.180.0070.08020.07
5.5.160.0030.08720.18
5.5.150.0130.07320.25
5.5.140.0170.07020.25
5.5.130.0130.06720.15
5.5.120.0100.07720.11
5.5.110.0170.07320.06
5.5.100.0000.08720.07
5.5.90.0000.08320.13
5.5.80.0070.07720.11
5.5.70.0070.08319.93
5.5.60.0170.06320.14
5.5.50.0100.05320.05
5.5.40.0200.06719.91
5.5.30.0130.06719.98
5.5.20.0130.07020.04
5.5.10.0100.08020.06
5.5.00.0170.07019.98
5.4.450.0030.05019.36
5.4.440.0100.03319.55
5.4.430.0000.04319.24
5.4.420.0030.06319.40
5.4.410.0030.03318.98
5.4.400.0030.06719.04
5.4.390.0030.03719.04
5.4.380.0000.04019.23
5.4.370.0130.07018.90
5.4.360.0070.07719.03
5.4.350.0070.07719.04
5.4.340.0100.07719.23
5.4.320.0230.06319.14
5.4.310.0030.08018.95
5.4.300.0070.07018.94
5.4.290.0070.05719.04
5.4.280.0130.06718.80
5.4.270.0100.07718.90
5.4.260.0130.06319.14
5.4.250.0030.08019.14
5.4.240.0170.06018.89
5.4.230.0200.06718.97
5.4.220.0000.08019.11
5.4.210.0130.07018.80
5.4.200.0070.08019.06
5.4.190.0100.07719.09
5.4.180.0170.06719.09
5.4.170.0030.07319.21
5.4.160.0070.04718.91
5.4.150.0100.07719.01
5.4.140.0100.04316.39
5.4.130.0100.07016.38
5.4.120.0070.06316.39
5.4.110.0100.06016.26
5.4.100.0070.06716.36
5.4.90.0030.07716.21
5.4.80.0070.07316.19
5.4.70.0000.07316.31
5.4.60.0070.07716.30
5.4.50.0070.07316.28
5.4.40.0030.08016.23
5.4.30.0100.07016.41
5.4.20.0130.06716.23
5.4.10.0100.06716.28
5.4.00.0000.06015.74
5.3.290.0070.07714.65
5.3.280.0070.07314.57
5.3.270.0170.07014.46
5.3.260.0100.07314.56
5.3.250.0000.04714.56
5.3.240.0030.05714.61
5.3.230.0100.07314.46
5.3.220.0130.06314.56
5.3.210.0070.06714.39
5.3.200.0100.07014.55
5.3.190.0070.06314.56
5.3.180.0170.08314.52
5.3.170.0100.07014.57
5.3.160.0130.06314.42
5.3.150.0170.03314.52
5.3.140.0070.05314.55
5.3.130.0070.07014.54
5.3.120.0030.08314.51
5.3.110.0000.08014.50
5.3.100.0130.07314.02
5.3.90.0070.08014.04
5.3.80.0070.07313.97
5.3.70.0100.06713.97
5.3.60.0070.07713.99
5.3.50.0030.07013.93
5.3.40.0000.08013.89
5.3.30.0000.04013.66
5.3.20.0070.06713.67
5.3.10.0100.06713.67
5.3.00.0030.07713.63
5.2.170.0100.06311.16
5.2.160.0030.06011.12
5.2.150.0100.05711.18
5.2.140.0070.02711.20
5.2.130.0030.06311.09
5.2.120.0070.06011.10
5.2.110.0100.05711.09
5.2.100.0100.05711.11
5.2.90.0070.06310.96
5.2.80.0070.06010.94
5.2.70.0100.03311.08
5.2.60.0130.05711.04
5.2.50.0100.05010.93
5.2.40.0070.06010.98
5.2.30.0130.05010.93
5.2.20.0030.05710.86
5.2.10.0070.06010.91
5.2.00.0100.05310.77
5.1.60.0030.05310.02
5.1.50.0070.0439.99
5.1.40.0000.03010.02
5.1.30.0030.05310.41
5.1.20.0030.04010.42
5.1.10.0070.05310.05
5.1.00.0000.04710.12
5.0.50.0030.0478.59
5.0.40.0070.0208.45
5.0.30.0070.0608.23
5.0.20.0000.0478.23
5.0.10.0030.0438.23
5.0.00.0030.0678.23
4.4.90.0030.0308.23
4.4.80.0070.0308.23
4.4.70.0100.0278.23
4.4.60.0070.0338.23
4.4.50.0070.0308.23
4.4.40.0000.0538.23
4.4.30.0070.0338.23
4.4.20.0030.0338.23
4.4.10.0000.0378.23
4.4.00.0000.0408.23
4.3.110.0030.0378.23
4.3.100.0030.0338.23
4.3.90.0000.0378.23
4.3.80.0100.0208.23
4.3.70.0000.0338.23
4.3.60.0100.0278.23
4.3.50.0000.0238.23
4.3.40.0000.0378.23
4.3.30.0030.0338.23
4.3.20.0030.0238.23
4.3.10.0030.0308.23
4.3.00.0030.0208.23