3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo version_compare(PHP_VERSION, '7.0.0', '>=') ? 'greater or equal' : 'less';
based on uaQVM

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.0100.00216.59
7.3.00.0120.00916.24
7.2.130.0220.00016.66
7.2.120.0040.00716.68
7.2.110.0100.00316.34
7.2.100.0000.01316.88
7.2.90.0110.00016.71
7.2.80.0190.00416.95
7.2.70.0040.01116.84
7.2.60.0090.00516.74
7.2.50.0070.01016.62
7.2.40.0060.00916.90
7.2.30.0120.00416.54
7.2.20.0110.00016.91
7.2.10.0100.00716.83
7.2.00.0020.01017.93
7.1.250.0090.00315.73
7.1.200.0100.00015.64
7.1.100.0040.00818.05
7.1.70.0090.00016.90
7.1.60.0030.01319.18
7.1.50.0160.00716.84
7.1.00.0070.07322.54
7.0.200.0030.00716.62
7.0.110.0070.04320.03
7.0.100.0000.08019.96
7.0.90.0070.07719.91
7.0.80.0130.08020.03
7.0.70.0070.06719.92
7.0.60.0030.06719.65
7.0.50.0030.04719.99
7.0.40.0000.04319.74
7.0.30.0000.04019.74
7.0.20.0100.08019.84
7.0.10.0070.07719.84
7.0.00.0070.05719.87
5.6.280.0030.07320.90
5.6.260.0170.06720.59
5.6.250.0100.08020.73
5.6.240.0070.06720.47
5.6.230.0000.05320.63
5.6.220.0100.06320.67
5.6.210.0030.04720.80
5.6.200.0070.07320.65
5.6.190.0100.03720.61
5.6.180.0070.03320.56
5.6.170.0070.07020.69
5.6.160.0130.06020.62
5.6.150.0100.03320.57
5.6.140.0070.04020.64
5.6.130.0100.08720.64
5.6.120.0100.07720.68
5.6.110.0100.08020.44
5.6.100.0170.06020.54
5.6.90.0030.08720.44
5.6.80.0070.05319.91
5.6.70.0000.04720.02
5.6.60.0070.04719.93
5.6.50.0100.07019.91
5.6.40.0130.03720.05
5.6.30.0070.08019.88
5.6.20.0100.07019.99
5.6.10.0070.04319.89
5.6.00.0030.08319.99
5.5.380.0070.07717.53
5.5.370.0100.07717.53
5.5.360.0100.05017.49
5.5.350.0070.07717.66
5.5.340.0070.06017.82
5.5.330.0030.06717.87
5.5.320.0030.03718.00
5.5.310.0000.04017.86
5.5.300.0100.03018.12
5.5.290.0070.06717.85
5.5.280.0070.07318.09
5.5.270.0070.04718.24
5.5.260.0030.05018.15
5.5.250.0070.07717.84
5.5.240.0030.07317.41
5.5.230.0030.07017.24
5.5.220.0000.07717.50
5.5.210.0070.07317.24
5.5.200.0000.07317.34
5.5.190.0100.05717.47
5.5.180.0030.05317.44
5.5.160.0170.06317.47
5.5.150.0030.08017.33
5.5.140.0130.06717.21
5.5.130.0100.07017.48
5.5.120.0130.06717.51
5.5.110.0070.07317.20
5.5.100.0000.08017.38
5.5.90.0000.04717.08
5.5.80.0030.04317.37
5.5.70.0100.04717.12
5.5.60.0130.07317.37
5.5.50.0100.06317.09
5.5.40.0070.07717.14
5.5.30.0070.04317.10
5.5.20.0070.05017.48
5.5.10.0100.07017.08
5.5.00.0000.07717.00
5.4.450.0100.05719.31
5.4.440.0070.07019.57
5.4.430.0100.07319.59
5.4.420.0170.06319.57
5.4.410.0130.07319.24
5.4.400.0070.05319.01
5.4.390.0130.07319.16
5.4.380.0100.07319.11
5.4.370.0030.04319.03
5.4.360.0100.06018.98
5.4.350.0130.07318.95
5.4.340.0000.04319.15
5.4.320.0030.06019.00
5.4.310.0130.05319.16
5.4.300.0000.07318.92
5.4.290.0070.07319.17
5.4.280.0070.07718.95
5.4.270.0100.07019.17
5.4.260.0030.06319.02
5.4.250.0000.04719.16
5.4.240.0130.03719.11
5.4.230.0030.04318.94
5.4.220.0100.06719.16
5.4.210.0100.04019.11
5.4.200.0030.05018.99
5.4.190.0100.07019.02
5.4.180.0030.07018.99
5.4.170.0030.08019.00
5.4.160.0030.07719.23
5.4.150.0070.04719.23
5.4.140.0130.07316.27
5.4.130.0170.06016.20
5.4.120.0170.05716.21
5.4.110.0130.06716.53
5.4.100.0070.06716.18
5.4.90.0030.07316.13
5.4.80.0000.07716.22
5.4.70.0030.07316.36
5.4.60.0170.06016.35
5.4.50.0100.07016.50
5.4.40.0100.03016.55
5.4.30.0000.07716.25
5.4.20.0030.07716.43
5.4.10.0070.06716.48
5.4.00.0100.06315.91
5.3.290.0170.04014.67
5.3.280.0030.07014.54
5.3.270.0170.06314.47
5.3.260.0170.06014.53
5.3.250.0070.06314.43
5.3.240.0000.04714.59
5.3.230.0100.07314.70
5.3.220.0070.07014.35
5.3.210.0030.05314.66
5.3.200.0030.04314.46
5.3.190.0070.06314.44
5.3.180.0000.07714.46
5.3.170.0130.06714.35
5.3.160.0070.06714.62
5.3.150.0030.05014.45
5.3.140.0030.03714.55
5.3.130.0100.07014.48
5.3.120.0030.04714.63
5.3.110.0100.07014.55
5.3.100.0030.04314.13
5.3.90.0030.07013.86
5.3.80.0070.07313.93
5.3.70.0100.06713.90
5.3.60.0100.07714.02
5.3.50.0000.04313.87
5.3.40.0030.04313.80
5.3.30.0030.05013.96
5.3.20.0000.07713.61
5.3.10.0130.06013.54
5.3.00.0000.04313.51
5.2.170.0000.04711.09
5.2.160.0030.06011.06
5.2.150.0030.04710.93
5.2.140.0030.03011.08
5.2.130.0070.03011.00
5.2.120.0070.03311.11
5.2.110.0030.03010.98
5.2.100.0070.05311.17
5.2.90.0030.05710.88
5.2.80.0030.04011.16
5.2.70.0030.05011.16
5.2.60.0000.05010.98
5.2.50.0030.04310.96
5.2.40.0070.03311.00
5.2.30.0070.05711.04
5.2.20.0070.06010.88
5.2.10.0000.04710.81
5.2.00.0030.03310.71
5.1.60.0030.02310.05
5.1.50.0030.05310.03
5.1.40.0030.02310.03
5.1.30.0030.05710.35
5.1.20.0030.02710.48
5.1.10.0030.05310.04
5.1.00.0100.04310.30
5.0.50.0030.04310.03
5.0.40.0000.04010.03
5.0.30.0070.04710.03
5.0.20.0030.03010.03
5.0.10.0100.03310.03
5.0.00.0100.02710.03
4.4.90.0070.02710.03
4.4.80.0000.03310.03
4.4.70.0000.01710.03
4.4.60.0000.03310.03
4.4.50.0000.02710.03
4.4.40.0000.04010.03
4.4.30.0070.03010.03
4.4.20.0030.03010.03
4.4.10.0030.01310.03
4.4.00.0000.04010.03
4.3.110.0030.03310.03
4.3.100.0000.02010.03
4.3.90.0000.03010.03
4.3.80.0000.02710.03
4.3.70.0000.03710.03
4.3.60.0000.01310.03
4.3.50.0000.01710.03
4.3.40.0070.02710.03
4.3.30.0000.02710.03
4.3.20.0030.02010.03
4.3.10.0000.01710.03
4.3.00.0000.01710.03