3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function gimmeAnInt(): int { return PHP_INT_MAX + 1; } echo gimmeAnInt();

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.0rc30.0250.00016.34
7.3.0beta10.0070.00312.37
7.3.0alpha10.0000.00612.70
7.2.60.0040.00816.87
7.1.200.0210.00415.25
7.1.70.0070.00316.93
7.1.60.0100.01017.00
7.1.50.0060.00616.55
7.1.40.0070.00716.40
7.1.30.0000.01116.53
7.1.20.0030.00816.82
7.1.10.0000.00816.51
7.1.00.0030.00716.38
7.0.200.0070.01016.39
7.0.190.0000.00816.61
7.0.180.0060.00316.09
7.0.170.0000.01016.15
7.0.160.0000.01016.12
7.0.150.0000.00716.24
7.0.140.0040.00416.12
7.0.130.0000.00816.49
7.0.120.0040.00416.37
7.0.110.0000.00716.50
7.0.100.0040.00416.07
7.0.90.0030.00616.40
7.0.80.0040.00416.32
7.0.70.0100.00016.33
7.0.60.0050.00516.04
7.0.50.0040.00416.36
7.0.40.0000.00814.83
7.0.30.0000.00814.83
7.0.20.0160.00014.83
7.0.10.0030.01314.83
7.0.00.0070.01114.83
hhvm-3.17.30.0200.11798.93
hhvm-3.15.40.0240.083100.72
hhvm-3.13.20.0240.121111.64
hhvm-3.12.140.0300.079114.25
hhvm-3.11.10.0330.125106.50
hhvm-3.10.10.0430.106103.59
5.6.300.0070.06020.95
5.6.290.0030.04020.61
5.6.280.0100.04821.08
5.6.270.0070.04020.99
5.6.260.0030.04120.87
5.6.250.0030.04020.83
5.6.240.0030.04120.95
5.6.230.0070.03920.78
5.6.220.0030.04120.96
5.6.210.0100.03620.81
5.6.200.0030.07220.96
5.6.190.0040.04220.98
5.6.180.0130.03020.83
5.6.170.0260.02620.82
5.6.160.0030.05320.82
5.6.150.0070.04320.82
5.6.140.0040.04620.96
5.6.130.0100.03420.91
5.6.120.0030.04520.91
5.6.110.0070.04520.88
5.6.100.0100.07620.97
5.6.90.0000.04620.77
5.6.80.0000.04520.17
5.6.70.0130.07320.39
5.6.60.0030.03920.30
5.6.50.0030.03920.36
5.6.40.0230.03020.33
5.6.30.0030.04620.35
5.6.20.0030.03920.40
5.6.10.0070.03920.13
5.6.00.0000.06320.15
5.5.380.0030.04217.64
5.5.370.0000.04217.52
5.5.360.0000.04217.56
5.5.350.0030.04117.53
5.5.340.0060.03818.01
5.5.330.0160.03317.99
5.5.320.0100.06218.11
5.5.310.0060.03517.82
5.5.300.0030.06818.05
5.5.290.0030.04518.09
5.5.280.0000.04418.05
5.5.270.0030.05118.04
5.5.260.0030.04417.96
5.5.250.0000.04617.94
5.5.240.0000.05417.52
5.5.230.0070.08017.43
5.5.220.0030.05617.10
5.5.210.0000.04117.37
5.5.200.0030.04817.45
5.5.190.0000.04417.34
5.5.180.0030.04317.41
5.5.160.0000.04117.32
5.5.150.0070.03417.39
5.5.140.0030.03917.16
5.5.130.0030.04317.40
5.5.120.0000.04917.09
5.5.110.0030.03917.39
5.5.100.0070.03317.25
5.5.90.0000.05817.30
5.5.80.0030.03917.38
5.5.70.0000.04317.23
5.5.60.0030.04017.30
5.5.50.0030.04017.23
5.5.40.0030.03817.25
5.5.30.0000.03917.29
5.5.20.0000.04117.29
5.5.10.0030.03817.30
5.5.00.0070.04117.28
5.4.450.0030.04619.38
5.4.440.0030.04919.42
5.4.430.0000.04019.35
5.4.420.0000.05019.47
5.4.410.0100.03819.33
5.4.400.0030.03819.17
5.4.390.0100.05118.84
5.4.380.0030.05719.10
5.4.370.0000.04418.86
5.4.360.0100.06019.01
5.4.350.0030.04019.03
5.4.340.0070.03318.84
5.4.320.0100.05119.12
5.4.310.0070.06218.98
5.4.300.0030.03918.95
5.4.290.0030.04419.12
5.4.280.0070.07618.95
5.4.270.0060.03218.86
5.4.260.0030.03719.10
5.4.250.0030.03919.10
5.4.240.0000.03918.91
5.4.230.0000.03919.01
5.4.220.0030.04419.13
5.4.210.0030.07319.16
5.4.200.0070.03618.95
5.4.190.0000.04018.91
5.4.180.0040.03918.91
5.4.170.0100.06518.81
5.4.160.0030.04018.94
5.4.150.0070.03419.09
5.4.140.0030.03916.67
5.4.130.0070.03116.74
5.4.120.0000.04116.61
5.4.110.0000.04016.70
5.4.100.0000.03916.48
5.4.90.0000.03816.69
5.4.80.0000.06716.59
5.4.70.0030.03716.64
5.4.60.0000.03816.57
5.4.50.0000.03816.60
5.4.40.0030.03616.72
5.4.30.0060.03216.53
5.4.20.0100.05016.58
5.4.10.0030.03816.57
5.4.00.0070.03016.07
5.3.290.0100.04214.83
5.3.280.0000.05214.83
5.3.270.0030.04114.83
5.3.260.0000.04114.83
5.3.250.0040.03514.83
5.3.240.0000.04014.83
5.3.230.0030.03714.83
5.3.220.0030.03914.83
5.3.210.0000.04014.92
5.3.200.0030.03614.83
5.3.190.0030.08514.83
5.3.180.0060.03214.83
5.3.170.0030.03914.84
5.3.160.0030.03914.83
5.3.150.0030.03414.83
5.3.140.0000.04214.83
5.3.130.0000.04114.83
5.3.120.0000.04114.83
5.3.110.0030.04014.83
5.3.100.0000.03914.83
5.3.90.0000.04114.83
5.3.80.0000.04214.83
5.3.70.0040.03614.83
5.3.60.0030.03314.83
5.3.50.0030.03814.83
5.3.40.0030.03914.83
5.3.30.0000.04014.83
5.3.20.0030.03414.83
5.3.10.0030.03214.83
5.3.00.0070.03414.83
5.2.170.0030.03014.83
5.2.160.0000.04114.83
5.2.150.0030.02814.83
5.2.140.0000.03214.83
5.2.130.0060.02914.83
5.2.120.0030.02614.83
5.2.110.0070.03014.83
5.2.100.0070.02614.83
5.2.90.0060.02314.83
5.2.80.0030.02714.83
5.2.70.0000.03114.83
5.2.60.0100.03514.83
5.2.50.0060.02514.83
5.2.40.0040.02814.83
5.2.30.0000.03214.83
5.2.20.0000.03214.83
5.2.10.0030.02914.83
5.2.00.0000.03014.83
5.1.60.0000.02714.83
5.1.50.0000.02614.83
5.1.40.0000.02814.83
5.1.30.0030.02914.83
5.1.20.0000.03214.83
5.1.10.0000.02814.83
5.1.00.0090.01814.83
5.0.50.0000.02214.83
5.0.40.0030.01814.83
5.0.30.0070.02414.83
5.0.20.0070.01414.83
5.0.10.0000.02114.83
5.0.00.0040.03214.83
4.4.90.0060.01614.83
4.4.80.0000.01714.83
4.4.70.0030.01314.83
4.4.60.0030.01414.83
4.4.50.0060.01114.83
4.4.40.0000.02914.83
4.4.30.0030.01314.83
4.4.20.0070.01314.83
4.4.10.0040.01414.83
4.4.00.0140.02414.83
4.3.110.0000.01714.83
4.3.100.0000.01914.83
4.3.90.0000.01614.83
4.3.80.0070.02014.83
4.3.70.0000.01914.83
4.3.60.0000.02014.83
4.3.50.0030.01414.83
4.3.40.0030.02314.83
4.3.30.0030.01314.83
4.3.20.0060.01214.83
4.3.10.0030.01414.83
4.3.00.0000.01714.83