3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $start = new DateTime('01-01-2015'); $end = new DateTime('01-06-2015'); $period = new DatePeriod($start, new DateInterval('P1W'), $end); $firstDay = null; $lastDay = null; var_dump(array_pop($period));
based on HSEkL

Here you find the average performance (time & memory) of each version. A greyed 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.0alpha10.0070.00412.56
7.2.60.0180.00416.86
7.2.00.0090.00619.16
7.1.100.0060.00918.19
7.1.70.0030.00617.16
7.1.60.0140.01119.46
7.1.50.0100.01316.97
7.1.00.0070.07022.31
7.0.200.0400.00914.58
7.0.140.0030.03322.01
7.0.60.0070.08020.04
7.0.50.0170.07317.82
7.0.40.0170.07320.25
7.0.30.0330.04320.02
7.0.20.0270.03320.13
7.0.10.0130.08320.33
7.0.00.0100.04020.20
5.6.280.0070.06721.02
5.6.210.0070.05020.71
5.6.200.0070.07718.12
5.6.190.0070.05320.60
5.6.180.3570.04020.32
5.6.170.0430.05720.52
5.6.160.0030.09020.37
5.6.150.0100.06718.21
5.6.140.0030.06318.22
5.6.130.0100.07018.17
5.6.120.0070.08321.14
5.6.110.0030.06021.13
5.6.100.0130.07320.98
5.6.90.0100.07021.10
5.6.80.0030.08020.50
5.6.70.4400.04320.37
5.5.350.0270.06020.45
5.5.340.0100.05017.98
5.5.330.0070.08320.40
5.5.320.3130.04320.41
5.5.310.0200.05320.26
5.5.300.0030.05718.02
5.5.290.0070.08317.98
5.5.280.0100.05720.76
5.5.270.0070.09320.72
5.5.260.0070.07320.66
5.5.250.0100.03320.68
5.5.240.0300.07020.22
5.4.450.0530.07019.68
5.4.440.0200.04719.63
5.4.430.0230.04319.35
5.4.420.0170.05019.68
5.4.410.0100.06019.41
5.4.400.0070.06318.96
5.4.390.0270.04318.56
5.4.380.0130.07018.70
5.4.370.0170.05718.46
5.4.360.0130.07018.56
5.4.350.0130.06018.50
5.4.340.0170.05318.58
5.4.320.0170.06018.69
5.4.310.0130.06018.54
5.4.300.0170.05718.75
5.4.290.0070.07018.59
5.4.280.0170.05718.68
5.4.270.0270.05318.68
5.4.260.0200.05718.69
5.4.250.0130.06318.46
5.4.240.0770.06018.49
5.4.230.0170.07318.64
5.4.220.0330.06018.63
5.4.210.0230.07018.67
5.4.200.0230.05016.67
5.4.190.0330.06318.46
5.4.180.0200.07718.46
5.4.170.0100.08018.66
5.4.160.0230.06718.75
5.4.150.0170.06718.47
5.4.140.0130.07716.28
5.4.130.0100.05716.34
5.4.120.0130.07016.33
5.4.110.0100.06016.27
5.4.100.0100.05716.07
5.4.90.0170.05316.24
5.4.80.0270.04016.20
5.4.70.0200.05716.16
5.4.60.0130.05716.32
5.4.50.0130.05716.01
5.4.40.0100.05716.24
5.4.30.0200.05316.00
5.4.20.0130.05716.05
5.4.10.0070.06716.06
5.4.00.0230.05315.70
5.3.290.0200.07014.68
5.3.280.0300.05714.50
5.3.270.0200.06014.59
5.3.260.0230.05014.70
5.3.250.0230.05014.68
5.3.240.0200.05014.54
5.3.230.0130.05714.67
5.3.220.0170.06014.59
5.3.210.0100.06314.56
5.3.200.0130.05714.60
5.3.190.0130.06014.50
5.3.180.0130.06014.54
5.3.170.0200.06014.46
5.3.160.0270.04714.50
5.3.150.0230.06014.62
5.3.140.0270.04314.54
5.3.130.0070.07014.65
5.3.120.0170.06014.56
5.3.110.0130.05714.48
5.3.100.0030.06014.12
5.3.90.0130.05013.95
5.3.80.0070.06014.10
5.3.70.0100.05714.02
5.3.60.0200.06013.95
5.3.50.0230.06313.91
5.3.40.0170.07013.89
5.3.30.0230.04713.90
5.3.20.0170.07013.60
5.3.10.0170.06713.60
5.3.00.0170.07013.62
5.2.170.0130.06011.12
5.2.160.0130.04011.11
5.2.150.0130.04711.19
5.2.140.0030.05311.10
5.2.130.0130.04311.03
5.2.120.0100.04311.09
5.2.110.0030.04711.16
5.2.100.0130.04311.14
5.2.90.0130.04011.07
5.2.80.0130.04011.14
5.2.70.0070.05011.25
5.2.60.0170.03711.05
5.2.50.0130.04311.02
5.2.40.0030.04711.02
5.2.30.0070.04710.98
5.2.20.0100.04310.89
5.2.10.0170.03710.84
5.2.00.0100.04710.67
5.1.60.0130.03310.12
5.1.50.0100.03710.04
5.1.40.0100.03710.10
5.1.30.0200.03710.39
5.1.20.0070.04010.36
5.1.10.0030.05010.13
5.1.00.0070.04310.12
5.0.50.0000.0408.64
5.0.40.0100.0238.47
5.0.30.0070.0438.27
5.0.20.0130.0238.26
5.0.10.0100.0238.20
5.0.00.0070.0438.17
4.4.90.0030.0335.82
4.4.80.0100.0235.89
4.4.70.0100.0175.87
4.4.60.0100.0235.89
4.4.50.0070.0205.91
4.4.40.0030.0405.87
4.4.30.0070.0205.86
4.4.20.0030.0235.95
4.4.10.0030.0235.95
4.4.00.0030.0375.84
4.3.110.0100.0175.84
4.3.100.0100.0205.80
4.3.90.0030.0305.91
4.3.80.0030.0435.78
4.3.70.0000.0305.84
4.3.60.0100.0175.78
4.3.50.0070.0205.77
4.3.40.0000.0405.75
4.3.30.0100.0174.55
4.3.20.0070.0204.58
4.3.10.0000.0274.54
4.3.00.0070.0239.28