3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $Start_Week = '201338'; $start = new DateTime(); $start->setISODate(substr($Start_Week, 0, 4), substr($Start_Week, 4, 2)); echo $start->format('Y-m-d');

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.0030.00819.44
7.1.100.0080.00318.26
7.1.70.0000.00816.99
7.1.60.0090.01519.21
7.1.50.0120.00917.00
7.1.00.0030.05322.41
7.0.200.0150.00914.91
7.0.140.0070.07321.99
7.0.70.4800.04719.92
7.0.60.0170.07019.98
7.0.50.0000.04317.66
7.0.40.0070.05320.06
7.0.30.0430.04320.02
7.0.20.0300.05320.02
7.0.10.0270.07720.22
7.0.00.0100.06020.19
5.6.280.0130.06720.90
5.6.210.0330.04720.64
5.6.200.0130.07318.08
5.6.190.0030.07720.54
5.6.180.0070.06320.42
5.6.170.0330.07720.38
5.6.160.0130.07720.33
5.6.150.0030.05718.12
5.6.140.0100.07318.07
5.6.130.0100.08018.14
5.6.120.0030.07720.99
5.6.110.0100.08321.13
5.6.100.0100.08021.11
5.6.90.0130.05720.97
5.6.80.0130.06720.52
5.6.70.0170.07020.38
5.5.350.0070.07320.46
5.5.340.0070.04318.02
5.5.330.0130.07720.14
5.5.320.0000.08320.37
5.5.310.0170.04320.42
5.5.300.0030.06717.97
5.5.290.0070.05317.98
5.5.280.0070.08320.88
5.5.270.0070.08320.72
5.5.260.0100.03720.79
5.5.250.0070.06720.75
5.5.240.0070.04020.27
5.4.450.0200.06319.41
5.4.440.0200.05319.52
5.4.430.0230.05019.48
5.4.420.0130.06019.54
5.4.410.0130.05719.00
5.4.400.0270.06019.32
5.4.390.0270.04719.20
5.4.380.0100.05718.59
5.4.370.0130.03018.66
5.4.360.0100.04018.55
5.4.350.0070.03411.97
5.4.340.0090.03211.97
5.4.320.0040.04512.45
5.4.310.0100.04012.45
5.4.300.0040.03912.46
5.4.290.0070.04812.45
5.4.280.0040.03612.35
5.4.270.0080.04212.35
5.4.260.0040.04912.35
5.4.250.0070.05018.83
5.4.240.0100.05318.99
5.4.230.0170.04019.02
5.4.220.0100.05019.00
5.4.210.0070.05018.87
5.4.200.0030.05718.93
5.4.190.0070.05318.99
5.4.180.0200.04318.94
5.4.170.0000.06018.90
5.4.160.0030.05718.79
5.4.150.0100.05318.89
5.4.140.0030.05316.34
5.4.130.0030.05016.28
5.4.120.0070.06016.50
5.4.110.0070.05316.32
5.4.100.0030.05316.40
5.4.90.0100.05016.58
5.4.80.0030.07316.45
5.4.70.0030.05316.46
5.4.60.0100.04316.22
5.4.50.0030.05316.50
5.4.40.0170.04016.32
5.4.30.0070.05016.21
5.4.20.0030.05316.37
5.4.10.0100.04716.40
5.4.00.0100.04715.89
5.3.290.0060.03912.80
5.3.280.0130.04714.61
5.3.270.0070.06014.62
5.3.260.0030.07314.62
5.3.250.0070.05714.75
5.3.240.0100.07014.47
5.3.230.0030.06714.47
5.3.220.0100.05014.58
5.3.210.0000.05714.57
5.3.200.0000.05314.58
5.3.190.0070.05014.45
5.3.180.0100.04714.71
5.3.170.0070.06714.33
5.3.160.0070.04714.26
5.3.150.0070.05014.33
5.3.140.0130.04314.55
5.3.130.0030.05314.33
5.3.120.0130.04714.56
5.3.110.0100.05714.42
5.3.100.0030.05013.88
5.3.90.0070.05014.02
5.3.80.0130.04314.01
5.3.70.0030.05313.86
5.3.60.0070.05014.14
5.3.50.0030.05013.64
5.3.40.0100.06013.83
5.3.30.0070.06313.68
5.3.20.0030.07313.70
5.3.10.0130.06313.66
5.3.00.0170.05713.67
5.2.170.0030.04311.11
5.2.160.0100.03710.98
5.2.150.0030.06011.06
5.2.140.0030.04310.97
5.2.130.0030.04311.10
5.2.120.0030.04311.11
5.2.110.0070.03710.86
5.2.100.0070.05710.86
5.2.90.0030.04011.25
5.2.80.0070.04011.09
5.2.70.0030.04311.02
5.2.60.0100.03711.07
5.2.50.0100.03711.04
5.2.40.0170.04010.76
5.2.30.0030.04311.08
5.2.20.0000.06011.11
5.2.10.0030.04310.62
5.2.00.0070.04010.80
5.1.60.0030.0339.90
5.1.50.0030.03310.23
5.1.40.0000.03710.00
5.1.30.0100.04310.33
5.1.20.0000.04010.11
5.1.10.0030.03310.02
5.1.00.0000.03710.21
5.0.50.0030.0408.50
5.0.40.0030.0278.44
5.0.30.0000.0438.25
5.0.20.0030.0278.16
5.0.10.0100.0208.00
5.0.00.0030.0578.34
4.4.90.0000.0236.25
4.4.80.0000.0306.25
4.4.70.0030.0206.25
4.4.60.0000.0336.25
4.4.50.0070.0236.25
4.4.40.0000.0336.25
4.4.30.0030.0206.25
4.4.20.0070.0176.25
4.4.10.0030.0206.25
4.4.00.0070.0306.25
4.3.110.0000.0236.25
4.3.100.0000.0236.25
4.3.90.0000.0206.25
4.3.80.0030.0306.25
4.3.70.0000.0206.25
4.3.60.0000.0206.25
4.3.50.0070.0206.25
4.3.40.0000.0376.25
4.3.30.0000.0236.25
4.3.20.0070.0176.25
4.3.10.0000.0206.25
4.3.00.0030.0237.27