3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo mktime(0, 0, 0, date("m")-1, date("d"), date("Y")); echo date("Y-m-d",strtotime("1 months"));

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.00.0000.01619.61
7.1.100.0040.01318.43
7.1.70.0040.00417.28
7.1.60.0100.01319.24
7.1.50.0070.00717.17
7.1.00.0000.04022.46
7.0.200.0000.00716.87
7.0.140.0000.07321.97
7.0.80.0100.04719.85
7.0.70.0030.04020.01
7.0.60.0170.03719.95
7.0.50.0170.07020.29
7.0.40.0000.04320.19
7.0.30.0000.04720.09
7.0.20.0030.04320.17
7.0.10.0070.04020.10
7.0.00.0030.03720.09
5.6.230.0070.04020.68
5.6.220.0000.04320.73
5.6.210.0070.03720.60
5.6.200.0030.04321.07
5.6.190.0070.04321.11
5.6.180.0030.04721.11
5.6.170.0000.04721.02
5.6.160.0070.03721.16
5.6.150.0070.03721.10
5.6.140.0030.05020.93
5.6.130.0100.03021.07
5.6.120.0030.04321.05
5.6.110.0030.03721.04
5.6.100.0030.04720.99
5.6.90.0030.03720.98
5.6.80.0030.07720.37
5.6.70.0070.07320.32
5.6.60.0100.06720.47
5.6.50.0130.07020.32
5.6.40.0130.06020.27
5.6.30.0030.05020.32
5.6.20.0070.07320.28
5.6.10.0070.06720.39
5.6.00.0130.07020.44
5.5.370.0070.07320.36
5.5.360.0030.04720.35
5.5.350.0030.04320.41
5.5.340.0000.06020.86
5.5.330.0070.07320.88
5.5.320.0000.04320.82
5.5.310.0030.04020.91
5.5.300.0030.05320.75
5.5.290.0100.04720.86
5.5.280.0000.04720.86
5.5.270.0000.04720.84
5.5.260.0130.03320.91
5.5.250.0000.07020.63
5.5.240.0170.07020.27
5.5.230.0100.06320.29
5.5.220.0000.08020.26
5.5.210.0100.04320.28
5.5.200.0070.07320.23
5.5.190.0130.06720.26
5.5.180.0170.06020.26
5.5.160.0100.08020.15
5.5.150.0000.04320.26
5.5.140.0000.04320.25
5.5.130.0070.07720.25
5.5.120.0200.05720.20
5.5.110.0100.07720.23
5.5.100.0130.04020.13
5.5.90.0170.07719.97
5.5.80.0070.07720.09
5.5.70.0130.03320.11
5.5.60.0070.07720.05
5.5.50.0100.05020.02
5.5.40.0130.05319.99
5.5.30.0070.05020.14
5.5.20.0100.07720.07
5.5.10.0070.04320.10
5.5.00.0230.06020.12
5.4.450.0030.04319.36
5.4.440.0070.03719.38
5.4.430.0070.03719.38
5.4.420.0030.06319.46
5.4.410.0030.06018.98
5.4.400.0100.07319.11
5.4.390.0030.04318.79
5.4.380.0100.02719.10
5.4.370.0070.07719.03
5.4.360.0070.08319.05
5.4.350.0030.06019.05
5.4.340.0100.06318.98
5.4.320.0130.07019.12
5.4.310.0030.05318.90
5.4.300.0070.07719.07
5.4.290.0000.06018.89
5.4.280.0030.05719.06
5.4.270.0070.07718.90
5.4.260.0070.08319.23
5.4.250.0030.08318.80
5.4.240.0070.04718.99
5.4.230.0100.07718.97
5.4.220.0030.04719.02
5.4.210.0100.07318.92
5.4.200.0070.08018.97
5.4.190.0070.05018.80
5.4.180.0070.05318.99
5.4.170.0100.07019.11
5.4.160.0070.07319.07
5.4.150.0070.05719.10
5.4.140.0100.05716.42
5.4.130.0170.06016.44
5.4.120.0000.06016.32
5.4.110.0030.07716.29
5.4.100.0070.04716.29
5.4.90.0070.05016.27
5.4.80.0070.07316.25
5.4.70.0170.06316.35
5.4.60.0030.07016.18
5.4.50.0030.08016.31
5.4.40.0070.09016.32
5.4.30.0130.05716.19
5.4.20.0130.06716.18
5.4.10.0000.07716.43
5.4.00.0100.07715.84
5.3.290.0000.04314.62
5.3.280.0000.06014.43
5.3.270.0100.06314.43
5.3.260.0100.06314.61
5.3.250.0100.05714.59
5.3.240.0170.06714.51
5.3.230.0030.06714.54
5.3.220.0070.07714.52
5.3.210.0170.07014.38
5.3.200.0070.07014.53
5.3.190.0170.06714.54
5.3.180.0070.07714.38
5.3.170.0070.05314.52
5.3.160.0100.07014.47
5.3.150.0130.06714.52
5.3.140.0030.08014.39
5.3.130.0070.07714.48
5.3.120.0100.07714.50
5.3.110.0030.08314.54
5.3.100.0030.07713.90
5.3.90.0070.07313.95
5.3.80.0070.06313.77
5.3.70.0070.07713.87
5.3.60.0030.06013.93
5.3.50.0000.06713.70
5.3.40.0070.07013.95
5.3.30.0000.05713.66
5.3.20.0070.07313.54
5.3.10.0030.07313.63
5.3.00.0030.07013.62
5.2.170.0000.05710.93
5.2.160.0030.03311.14
5.2.150.0070.05711.10
5.2.140.0100.05711.08
5.2.130.0070.05711.12
5.2.120.0070.06310.89
5.2.110.0070.04311.04
5.2.100.0130.05311.09
5.2.90.0000.03710.96
5.2.80.0100.04010.94
5.2.70.0030.03711.06
5.2.60.0100.05010.88
5.2.50.0100.05011.06
5.2.40.0030.06310.95
5.2.30.0030.06010.91
5.2.20.0070.06310.80
5.2.10.0100.05010.93
5.2.00.0070.05710.66
5.1.60.0070.05310.05
5.1.50.0070.0509.83
5.1.40.0100.04710.02
5.1.30.0030.05010.44
5.1.20.0030.06010.26
5.1.10.0100.03710.17
5.1.00.0030.05010.11
5.0.50.0030.0438.38
5.0.40.0030.0438.25
5.0.30.0000.0538.20
5.0.20.0000.0438.27
5.0.10.0000.0508.27
5.0.00.0000.0678.16
4.4.90.0070.0177.62
4.4.80.0100.0307.62
4.4.70.0000.0377.62
4.4.60.0130.0237.62
4.4.50.0030.0377.62
4.4.40.0000.0577.62
4.4.30.0070.0277.62
4.4.20.0030.0337.62
4.4.10.0000.0277.62
4.4.00.0030.0507.62
4.3.110.0000.0307.62
4.3.100.0030.0337.62
4.3.90.0000.0237.62
4.3.80.0000.0537.62
4.3.70.0100.0237.62
4.3.60.0070.0277.62
4.3.50.0000.0377.62
4.3.40.0000.0507.62
4.3.30.0000.0337.62
4.3.20.0030.0337.62
4.3.10.0000.0237.62
4.3.00.0000.0307.62