3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $start_date = new DateTime("2009-05-13"); $day_of_week = $start_date->format("w"); $start_date->modify('-' . $day_of_week . ' day'); echo $start_date->format('jS, F Y');

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.0rc40.0170.00698.97
7.3.0rc30.0250.00316.61
7.3.0beta10.0060.00612.77
7.3.0alpha10.0140.00312.74
7.2.60.0120.00016.96
7.2.00.0030.00919.82
7.1.200.0120.00016.15
7.1.100.0060.00618.22
7.1.70.0120.00617.16
7.1.60.0130.00019.82
7.1.50.0130.00717.20
7.1.00.0130.06722.48
7.0.200.0090.00016.87
7.0.140.0070.07022.12
7.0.100.0070.07319.88
7.0.90.0000.09319.93
7.0.80.0070.08319.84
7.0.70.0200.08319.88
7.0.60.0100.06719.91
7.0.50.0170.07320.31
7.0.40.0100.07020.04
7.0.30.0100.08020.04
7.0.20.0130.04320.00
7.0.10.0100.07720.10
7.0.00.0070.08020.13
5.6.280.0070.06720.90
5.6.250.0230.05320.44
5.6.240.0030.08020.59
5.6.230.0130.06020.61
5.6.220.0030.05020.46
5.6.210.0070.09020.54
5.6.200.0070.08720.98
5.6.190.0070.08320.91
5.6.180.0070.07721.10
5.6.170.0100.06720.89
5.6.160.0130.07021.07
5.6.150.0130.07020.99
5.6.140.0100.07321.00
5.6.130.0100.08721.01
5.6.120.0070.08721.00
5.6.110.0130.08021.12
5.6.100.0100.08021.00
5.6.90.0130.07720.98
5.6.80.0100.08020.36
5.6.70.0130.07020.35
5.6.60.0130.08020.43
5.6.50.0130.04320.37
5.6.40.0200.03320.37
5.6.30.0070.07720.25
5.6.20.0100.05720.40
5.6.10.0130.07020.32
5.6.00.0070.07320.25
5.5.380.0130.07720.37
5.5.370.0230.06720.32
5.5.360.0100.07720.34
5.5.350.0130.07020.41
5.5.340.0100.08020.88
5.5.330.0170.07020.87
5.5.320.0170.06720.69
5.5.310.0070.07720.86
5.5.300.0030.09020.84
5.5.290.0030.08020.70
5.5.280.0170.07720.88
5.5.270.0100.08320.86
5.5.260.0030.08320.86
5.5.250.0100.04320.64
5.5.240.0100.05320.07
5.5.230.0130.07019.96
5.5.220.0130.04320.20
5.5.210.0030.08320.16
5.5.200.0030.08020.14
5.5.190.0100.07720.16
5.5.180.0070.08719.95
5.5.160.0000.08720.14
5.5.150.0070.07720.06
5.5.140.0030.07020.19
5.5.130.0100.07320.02
5.5.120.0070.06020.08
5.5.110.0100.07720.16
5.5.100.0030.07319.91
5.5.90.0130.05720.08
5.5.80.0030.06719.98
5.5.70.0070.08020.09
5.5.60.0130.05320.10
5.5.50.0030.04019.98
5.5.40.0070.07019.88
5.5.30.0130.07019.95
5.5.20.0000.06720.04
5.5.10.0130.06720.04
5.5.00.0030.08019.98
5.4.450.0100.06019.23
5.4.440.0130.07319.29
5.4.430.0170.07719.39
5.4.420.0100.07719.22
5.4.410.0030.05019.25
5.4.400.0130.08318.98
5.4.390.0030.06019.10
5.4.380.0000.08718.79
5.4.370.0130.03719.13
5.4.360.0170.06719.06
5.4.350.0170.07019.04
5.4.340.0030.08018.90
5.4.320.0130.07318.98
5.4.310.0070.05719.10
5.4.300.0070.07318.79
5.4.290.0100.07319.12
5.4.280.0100.06719.11
5.4.270.0070.04718.95
5.4.260.0000.07319.12
5.4.250.0100.05318.96
5.4.240.0130.05318.94
5.4.230.0070.05718.81
5.4.220.0070.03718.89
5.4.210.0070.06718.80
5.4.200.0070.07019.05
5.4.190.0100.07719.03
5.4.180.0070.07019.02
5.4.170.0070.04719.07
5.4.160.0130.06018.96
5.4.150.0130.04018.91
5.4.140.0200.03316.26
5.4.130.0070.06716.34
5.4.120.0030.04716.29
5.4.110.0000.05716.36
5.4.100.0170.04716.49
5.4.90.0000.05016.27
5.4.80.0030.04716.46
5.4.70.0130.04016.42
5.4.60.0100.03716.43
5.4.50.0130.04716.20
5.4.40.0130.04716.39
5.4.30.0100.06716.23
5.4.20.0070.04016.18
5.4.10.0100.07016.32
5.4.00.0070.03715.46
5.3.290.0130.06714.67
5.3.280.0070.07714.59
5.3.270.0100.06714.45
5.3.260.0100.07314.61
5.3.250.0030.06314.57
5.3.240.0000.07714.54
5.3.230.0070.07714.58
5.3.220.0070.07314.43
5.3.210.0030.06014.57
5.3.200.0130.05714.41
5.3.190.0070.06714.54
5.3.180.0000.04714.56
5.3.170.0070.07014.55
5.3.160.0200.04714.38
5.3.150.0070.07314.42
5.3.140.0030.07714.38
5.3.130.0100.07714.37
5.3.120.0130.06314.38
5.3.110.0130.07314.50
5.3.100.0030.04313.89
5.3.90.0070.04014.03
5.3.80.0030.07713.97
5.3.70.0000.07713.87
5.3.60.0070.04313.95
5.3.50.0000.06313.71
5.3.40.0070.07313.89
5.3.30.0000.04013.88
5.3.20.0070.07013.69
5.3.10.0130.06013.44
5.3.00.0100.06313.41
5.2.170.0100.04711.14
5.2.160.0130.05311.18
5.2.150.0130.02711.09
5.2.140.0130.05311.05
5.2.130.0030.06711.12
5.2.120.0000.04010.96
5.2.110.0100.04311.15
5.2.100.0000.03711.02
5.2.90.0030.06311.12
5.2.80.0070.06011.01
5.2.70.0070.03011.12
5.2.60.0130.05010.87
5.2.50.0030.05311.00
5.2.40.0000.04010.84
5.2.30.0030.06011.00
5.2.20.0100.02710.98
5.2.10.0030.06010.89
5.2.00.0130.04710.78
5.1.60.0070.0479.87
5.1.50.0100.0409.82
5.1.40.0130.02710.04
5.1.30.0070.04010.26
5.1.20.0000.06010.27
5.1.10.0100.03310.12
5.1.00.0030.05010.14
5.0.50.0070.0178.56
5.0.40.0070.0408.50
5.0.30.0030.0438.50
5.0.20.0030.0308.50
5.0.10.0070.0438.50
5.0.00.0030.0608.50
4.4.90.0000.0178.50
4.4.80.0000.0308.50
4.4.70.0030.0238.50
4.4.60.0070.0138.50
4.4.50.0070.0278.50
4.4.40.0000.0538.50
4.4.30.0000.0208.50
4.4.20.0000.0338.50
4.4.10.0030.0308.50
4.4.00.0000.0608.50
4.3.110.0070.0278.50
4.3.100.0000.0378.50
4.3.90.0070.0308.50
4.3.80.0030.0508.50
4.3.70.0000.0338.50
4.3.60.0000.0308.50
4.3.50.0130.0238.50
4.3.40.0000.0438.50
4.3.30.0000.0278.50
4.3.20.0000.0238.50
4.3.10.0000.0308.50
4.3.00.0000.0178.50