3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $gmtime = (int)gmdate('U'); echo date_default_timezone_get(); echo $gmtime; echo '<br />'; echo time();

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.0190.00416.58
7.3.00.0120.00816.54
7.2.130.0140.00816.58
7.2.120.0130.00616.55
7.2.110.0090.01316.68
7.2.100.0080.00716.60
7.2.90.0120.00716.50
7.2.80.0080.01216.77
7.2.70.0110.00916.77
7.2.60.0080.00916.83
7.2.50.0130.01016.81
7.2.40.0110.00916.63
7.2.30.0110.00816.72
7.2.20.0130.00616.61
7.2.10.0090.00916.67
7.2.00.0080.00817.40
7.1.250.0100.00815.67
7.1.100.0000.01018.23
7.1.70.0070.00017.35
7.1.60.0100.01319.17
7.1.50.0100.01317.10
7.1.00.0030.06022.35
7.0.200.0050.00316.95
7.0.140.0070.07021.95
7.0.100.0070.04019.93
7.0.90.0130.05019.88
7.0.80.0100.07719.93
7.0.70.0130.07019.98
7.0.60.0070.09019.92
7.0.50.0170.06720.29
7.0.40.0000.08720.00
7.0.30.0130.08320.08
7.0.20.0030.07719.95
7.0.10.0030.08320.03
7.0.00.0030.08020.17
5.6.280.0000.07720.80
5.6.250.0000.08720.59
5.6.240.0070.07720.69
5.6.230.0100.04720.63
5.6.220.0070.07020.73
5.6.210.0100.04020.64
5.6.200.0130.08321.10
5.6.190.0030.08721.05
5.6.180.0100.08321.05
5.6.170.0030.08721.00
5.6.160.0100.06721.05
5.6.150.0130.07020.99
5.6.140.0230.05721.07
5.6.130.0070.08321.00
5.6.120.0130.08021.10
5.6.110.0070.08020.93
5.6.100.0100.07321.08
5.6.90.0100.08321.08
5.6.80.0000.08320.45
5.6.70.0030.05020.43
5.6.60.0200.06320.30
5.6.50.0100.07320.33
5.6.40.0130.03720.42
5.6.30.0100.07320.41
5.6.20.0030.08320.45
5.6.10.0030.07020.39
5.6.00.0100.05020.38
5.5.380.0070.08720.41
5.5.370.0030.07720.36
5.5.360.0270.06720.33
5.5.350.0130.07020.40
5.5.340.0100.08020.86
5.5.330.0030.08020.88
5.5.320.0100.07020.75
5.5.310.0200.07320.88
5.5.300.0100.08320.77
5.5.290.0100.10020.88
5.5.280.0100.07720.88
5.5.270.0130.07720.76
5.5.260.0130.06020.87
5.5.250.0230.06020.59
5.5.240.0070.05320.27
5.5.230.0170.06720.16
5.5.220.0200.07720.14
5.5.210.0200.07020.17
5.5.200.0030.04720.14
5.5.190.0070.06720.17
5.5.180.0130.04320.08
5.5.160.0070.06720.24
5.5.150.0200.07020.20
5.5.140.0130.05320.20
5.5.130.0030.07720.26
5.5.120.0100.07720.09
5.5.110.0030.04020.25
5.5.100.0030.05319.91
5.5.90.0030.05319.94
5.5.80.0100.07320.00
5.5.70.0130.07019.99
5.5.60.0030.08020.08
5.5.50.0030.08020.09
5.5.40.0100.07720.10
5.5.30.0030.05020.02
5.5.20.0200.05320.04
5.5.10.0100.07320.07
5.5.00.0170.07319.96
5.4.450.0130.07019.14
5.4.440.0070.06019.55
5.4.430.0100.08019.44
5.4.420.0030.08019.45
5.4.410.0130.05019.17
5.4.400.0130.06719.06
5.4.390.0030.04719.09
5.4.380.0170.07019.06
5.4.370.0130.06719.12
5.4.360.0100.04719.11
5.4.350.0130.03319.10
5.4.340.0030.07719.03
5.4.320.0070.07719.03
5.4.310.0030.06718.95
5.4.300.0130.06718.80
5.4.290.0030.06319.07
5.4.280.0070.07018.81
5.4.270.0070.04019.02
5.4.260.0070.04718.83
5.4.250.0000.08019.04
5.4.240.0100.06019.09
5.4.230.0070.07719.02
5.4.220.0100.07319.22
5.4.210.0100.07018.80
5.4.200.0030.07318.97
5.4.190.0030.08319.03
5.4.180.0030.08019.11
5.4.170.0130.07018.96
5.4.160.0070.08019.10
5.4.150.0100.06319.04
5.4.140.0170.06316.42
5.4.130.0130.06016.32
5.4.120.0170.07016.44
5.4.110.0100.07316.40
5.4.100.0030.04016.43
5.4.90.0030.07016.26
5.4.80.0170.06016.46
5.4.70.0070.08016.37
5.4.60.0030.04016.33
5.4.50.0070.07316.31
5.4.40.0070.04316.26
5.4.30.0030.07716.18
5.4.20.0000.05316.35
5.4.10.0070.05316.29
5.4.00.0070.05015.71
5.3.290.0100.07314.57
5.3.280.0100.07714.45
5.3.270.0200.06714.54
5.3.260.0100.07714.61
5.3.250.0070.08014.48
5.3.240.0030.05014.60
5.3.230.0100.07314.58
5.3.220.0070.04314.43
5.3.210.0170.06314.39
5.3.200.0070.07714.50
5.3.190.0000.07314.42
5.3.180.0070.07314.41
5.3.170.0100.06014.42
5.3.160.0100.07314.53
5.3.150.0130.06714.38
5.3.140.0130.05714.41
5.3.130.0030.04714.54
5.3.120.0100.07014.50
5.3.110.0100.04714.49
5.3.100.0000.04013.89
5.3.90.0100.07713.83
5.3.80.0130.05714.00
5.3.70.0100.06014.00
5.3.60.0100.06713.76
5.3.50.0070.07013.92
5.3.40.0170.05013.90
5.3.30.0030.04313.89
5.3.20.0100.07313.69
5.3.10.0070.07313.65
5.3.00.0000.08013.40
5.2.170.0070.05711.18
5.2.160.0100.06011.07
5.2.150.0100.04011.10
5.2.140.0000.06310.98
5.2.130.0100.05710.91
5.2.120.0070.04311.02
5.2.110.0030.06710.96
5.2.100.0070.05711.04
5.2.90.0030.03710.96
5.2.80.0000.05711.15
5.2.70.0100.06011.01
5.2.60.0130.05711.00
5.2.50.0000.05710.84
5.2.40.0030.06311.06
5.2.30.0070.06311.00
5.2.20.0030.06310.80
5.2.10.0030.06310.88
5.2.00.0000.06310.63
5.1.60.0070.05010.37
5.1.50.0000.06010.37
5.1.40.0030.05310.37
5.1.30.0170.04710.43
5.1.20.0000.05010.37
5.1.10.0000.05710.37
5.1.00.0030.05710.37
5.0.50.0070.04310.37
5.0.40.0070.03710.37
5.0.30.0100.06010.37
5.0.20.0070.04010.37
5.0.10.0070.03010.37
5.0.00.0130.04710.37
4.4.90.0000.02710.37
4.4.80.0000.02010.37
4.4.70.0030.02010.37
4.4.60.0030.03310.37
4.4.50.0070.03010.37
4.4.40.0070.03010.37
4.4.30.0000.02010.37
4.4.20.0030.03710.37
4.4.10.0030.03710.37
4.4.00.0070.03310.37
4.3.110.0000.03010.37
4.3.100.0000.03710.37
4.3.90.0100.02710.37
4.3.80.0030.04310.37
4.3.70.0030.02310.37
4.3.60.0070.03010.37
4.3.50.0030.03310.37
4.3.40.0000.05310.37
4.3.30.0000.03710.37
4.3.20.0000.03010.37
4.3.10.0030.02710.37
4.3.00.0000.03710.37