3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump( 0b1010, "10" == "0b1010", // false 012, "10" == "012", // false 0xa, "10" == "0xa", // true 1E+1, "10" == "1E+1", // true 1e1, "10" == "1e1", // true 10.0, "10" == "10.0", // true +10, "10" == "+10" // true );

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.0100.00316.54
7.2.00.0030.00919.26
7.1.200.0260.00315.34
7.1.100.0030.00618.10
7.1.70.0000.01416.69
7.1.60.0070.00717.02
7.1.50.0080.00816.88
7.1.40.0040.00816.48
7.1.30.0080.00616.47
7.1.20.0060.00816.42
7.1.10.0090.00516.58
7.1.00.0070.00716.37
7.0.200.0140.00716.27
7.0.190.0030.00616.21
7.0.180.0080.00415.96
7.0.170.0050.00516.04
7.0.160.0050.00516.29
7.0.150.0080.00815.99
7.0.140.0080.00416.11
7.0.130.0120.00016.09
7.0.120.0100.00516.64
7.0.110.0090.00416.19
7.0.100.0050.00916.14
7.0.90.0000.01416.34
7.0.80.0140.00616.48
7.0.70.0060.00616.24
7.0.60.0070.00415.90
7.0.50.0080.00416.39
7.0.40.0060.00614.76
7.0.30.0030.01014.76
7.0.20.0000.01214.76
7.0.10.0100.00314.76
7.0.00.0060.00614.76
hhvm-3.17.30.0520.093102.49
hhvm-3.15.40.0420.09596.41
hhvm-3.13.20.0480.103109.71
hhvm-3.12.140.0370.01772.04
hhvm-3.11.10.0780.125104.77
hhvm-3.10.10.0370.088101.83
5.6.300.0040.04720.79
5.6.290.0130.03520.66
5.6.280.0070.08621.01
5.6.270.0070.05920.87
5.6.260.0070.05920.94
5.6.250.0060.04921.04
5.6.240.0210.05020.87
5.6.230.0040.09820.95
5.6.220.0100.03720.89
5.6.210.0030.04221.06
5.6.200.0030.04420.94
5.6.190.0150.03720.95
5.6.180.0110.04620.91
5.6.170.0030.04820.79
5.6.160.0120.06220.73
5.6.150.0030.05320.73
5.6.140.0090.04320.94
5.6.130.0070.04220.82
5.6.120.0070.08221.00
5.6.110.0100.06620.75
5.6.100.0090.03920.80
5.6.90.0070.07620.96
5.6.80.0100.08020.14
5.6.70.0090.05220.20
5.6.60.0090.07120.36
5.6.50.0120.05220.30
5.6.40.0030.04420.13
5.6.30.0040.04620.28
5.6.20.0000.05020.18
5.6.10.0070.03720.36
5.6.00.0100.05020.16
5.5.380.0070.05317.48
5.5.370.0090.04417.54
5.5.360.0030.04517.43
5.5.350.0030.04317.40
5.5.340.0070.04217.98
5.5.330.0030.04717.74
5.5.320.0070.05617.86
5.5.310.0070.03718.02
5.5.300.0070.03918.02
5.5.290.0060.03817.94
5.5.280.0160.03118.02
5.5.270.0100.07817.97
5.5.260.0030.05117.84
5.5.250.0000.04817.86
5.5.240.0030.06717.43
5.5.230.0070.05617.34
5.5.220.0070.04017.35
5.5.210.0030.04317.33
5.5.200.0070.03617.39
5.5.190.0030.04317.37
5.5.180.0000.04717.20
5.5.160.0070.03717.39
5.5.150.0000.04017.36
5.5.140.0060.03917.38
5.5.130.0000.04017.34
5.5.120.0030.07417.38
5.5.110.0030.07717.28
5.5.100.0070.03717.23
5.5.90.0030.04117.27
5.5.80.0030.06616.95
5.5.70.0070.07317.26
5.5.60.0030.06617.26
5.5.50.0000.06317.27
5.5.40.0070.03617.25
5.5.30.0000.03916.94
5.5.20.0030.04316.98
5.5.10.0030.03717.21
5.5.00.0000.06617.25
5.4.450.0060.04119.51
5.4.440.0030.07119.20
5.4.430.0100.06419.30
5.4.420.0030.04119.30
5.4.410.0070.05419.18
5.4.400.0130.03318.83
5.4.390.0030.05219.14
5.4.380.0100.07919.10
5.4.370.0130.04118.86
5.4.360.0000.04419.17
5.4.350.0100.04219.06
5.4.340.0030.03818.98
5.4.320.0000.04519.14
5.4.310.0060.03519.07
5.4.300.0000.05918.98
5.4.290.0100.07119.17
5.4.280.0070.06019.13
5.4.270.0030.04619.01
5.4.260.0030.03719.14
5.4.250.0000.05919.13
5.4.240.0030.06318.85
5.4.230.0000.04319.18
5.4.220.0030.08118.92
5.4.210.0030.05818.84
5.4.200.0100.03418.97
5.4.190.0030.03718.82
5.4.180.0000.04118.99
5.4.170.0000.06318.85
5.4.160.0070.06019.04
5.4.150.0130.03018.81
5.4.140.0100.03316.40
5.4.130.0250.02516.47
5.4.120.0000.04016.39
5.4.110.0060.03216.63
5.4.100.0060.03516.42
5.4.90.0030.03616.64
5.4.80.0030.03816.55
5.4.70.0000.03716.66
5.4.60.0030.03416.53
5.4.50.0030.03716.61
5.4.40.0060.03216.52
5.4.30.0070.03016.54
5.4.20.0030.07716.33
5.4.10.0030.03716.43
5.4.00.0000.04215.88
5.3.290.0170.04014.76
5.3.280.0100.03314.76
5.3.270.0030.03814.76
5.3.260.0060.03414.76
5.3.250.0000.04214.76
5.3.240.0000.04314.76
5.3.230.0070.03614.76
5.3.220.0030.03814.76
5.3.210.0000.04314.76
5.3.200.0000.04214.76
5.3.190.0030.03714.76
5.3.180.0040.03914.78
5.3.170.0070.03114.76
5.3.160.0060.03914.76
5.3.150.0130.02914.76
5.3.140.0000.04114.76
5.3.130.0100.02914.76
5.3.120.0000.04514.76
5.3.110.0070.03314.76
5.3.100.0070.04414.76
5.3.90.0030.05014.76
5.3.80.0030.03914.76
5.3.70.0030.03514.76
5.3.60.0000.04014.76
5.3.50.0030.03514.76
5.3.40.0030.03314.76
5.3.30.0030.05014.76
5.3.20.0000.04214.76
5.3.10.0030.03214.76
5.3.00.0000.03614.76
5.2.170.0000.04414.76
5.2.160.0030.06314.76
5.2.150.0070.04914.76
5.2.140.0000.03214.76
5.2.130.0130.03514.76
5.2.120.0000.02914.76
5.2.110.0030.02914.76
5.2.100.0000.03614.76
5.2.90.0030.02914.76
5.2.80.0030.04714.76
5.2.70.0030.03014.76
5.2.60.0040.02814.76
5.2.50.0030.02914.76
5.2.40.0000.03214.76
5.2.30.0070.03014.76
5.2.20.0060.03214.76
5.2.10.0000.02914.76
5.2.00.0030.05014.76
5.1.60.0000.03614.76
5.1.50.0030.02514.76
5.1.40.0060.05114.76
5.1.30.0070.04814.76
5.1.20.0060.02114.76
5.1.10.0000.04514.76
5.1.00.0000.03414.76
5.0.50.0000.02714.76
5.0.40.0030.02014.76
5.0.30.0030.03114.76
5.0.20.0060.01614.76
5.0.10.0030.01914.76
5.0.00.0000.03214.76
4.4.90.0000.01714.76
4.4.80.0060.01014.76
4.4.70.0030.01314.76
4.4.60.0060.01314.76
4.4.50.0000.01614.76
4.4.40.0100.01614.76
4.4.30.0030.02814.76
4.4.20.0030.03814.76
4.4.10.0000.02014.76
4.4.00.0000.02814.76
4.3.110.0000.01814.76
4.3.100.0000.01714.76
4.3.90.0000.01814.76
4.3.80.0030.02214.76
4.3.70.0000.01614.76
4.3.60.0030.01414.76
4.3.50.0030.01414.76
4.3.40.0060.02714.76
4.3.30.0030.01714.76
4.3.20.0000.01814.76
4.3.10.0030.01514.76
4.3.00.0000.01614.76