3v4l.org

run code in 300+ PHP versions simultaneously
<?php $year = 2015; $week = 46; $dto = new DateTime(); $dto-> setISODate($year, $week); $ret['week_start'] = $dto->format('Y-m-d'); $dto->modify('+6 days'); $ret['week_end'] = $dto->format('Y-m-d'); echo $ret['week_start']; echo $ret['week_end'];

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).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0110.00716.50
8.3.50.0140.00422.11
8.3.40.0090.00619.09
8.3.30.0110.00418.73
8.3.20.0000.00820.38
8.3.10.0070.00023.50
8.3.00.0090.00619.63
8.2.180.0090.00616.50
8.2.170.0090.00622.96
8.2.160.0090.00620.47
8.2.150.0050.00324.18
8.2.140.0090.00624.66
8.2.130.0060.00317.63
8.2.120.0070.00726.35
8.2.110.0070.00319.31
8.2.100.0060.00618.00
8.2.90.0040.00419.42
8.2.80.0080.00018.00
8.2.70.0040.00418.00
8.2.60.0000.00818.29
8.2.50.0040.00418.07
8.2.40.0050.00319.58
8.2.30.0040.00420.73
8.2.20.0000.01018.02
8.2.10.0030.00518.14
8.2.00.0040.00418.24
8.1.280.0100.01025.92
8.1.270.0060.00323.86
8.1.260.0000.00728.09
8.1.250.0000.00828.09
8.1.240.0000.00924.05
8.1.230.0110.00017.91
8.1.220.0030.00517.91
8.1.210.0040.00418.77
8.1.200.0100.00017.47
8.1.190.0000.00717.83
8.1.180.0050.00318.10
8.1.170.0050.00318.79
8.1.160.0040.00421.97
8.1.150.0080.00018.88
8.1.140.0050.00319.64
8.1.130.0040.00417.76
8.1.120.0040.00417.69
8.1.110.0060.00317.66
8.1.100.0000.00817.73
8.1.90.0000.00717.54
8.1.80.0050.00317.65
8.1.70.0040.00417.66
8.1.60.0040.00417.66
8.1.50.0060.00617.67
8.1.40.0000.00817.52
8.1.30.0000.00817.72
8.1.20.0060.00317.76
8.1.10.0040.00417.70
8.1.00.0030.00717.78
8.0.300.0070.00018.77
8.0.290.0000.00716.88
8.0.280.0050.00318.48
8.0.270.0000.00717.31
8.0.260.0060.00317.39
8.0.250.0030.00317.21
8.0.240.0050.00317.12
8.0.230.0060.00317.08
8.0.220.0060.00317.13
8.0.210.0030.00416.97
8.0.200.0000.00617.15
8.0.190.0050.00317.17
8.0.180.0040.00417.02
8.0.170.0050.00317.04
8.0.160.0030.00616.97
8.0.150.0040.00416.89
8.0.140.0040.00417.09
8.0.130.0050.00013.44
8.0.120.0040.00416.96
8.0.110.0040.00317.13
8.0.100.0000.00717.07
8.0.90.0040.00416.95
8.0.80.0070.00717.07
8.0.70.0000.00716.96
8.0.60.0040.00416.98
8.0.50.0040.00417.05
8.0.30.0130.00517.29
8.0.20.0120.00717.45
8.0.10.0040.00417.07
8.0.00.0070.01117.01
7.4.330.0050.00016.91
7.4.320.0000.00616.76
7.4.300.0000.00616.62
7.4.290.0000.00716.78
7.4.280.0030.00516.64
7.4.270.0070.00016.74
7.4.260.0080.00016.70
7.4.250.0000.00816.58
7.4.240.0030.00416.70
7.4.230.0030.00316.82
7.4.220.0040.01516.58
7.4.210.0050.01216.71
7.4.200.0080.00016.76
7.4.160.0030.01316.66
7.4.150.0060.01317.40
7.4.140.0110.00817.86
7.4.130.0130.00816.85
7.4.120.0100.00616.68
7.4.110.0100.01016.75
7.4.100.0130.01016.91
7.4.90.0090.00916.67
7.4.80.0140.00819.39
7.4.70.0060.01116.78
7.4.60.0030.01316.60
7.4.50.0040.00816.75
7.4.40.0150.00716.61
7.4.30.0030.01416.73
7.4.00.0040.00815.20
7.3.330.0030.00313.36
7.3.320.0000.00713.21
7.3.310.0040.00416.36
7.3.300.0000.00616.38
7.3.290.0060.00016.47
7.3.280.0100.00816.45
7.3.270.0060.01017.40
7.3.260.0120.00616.57
7.3.250.0230.00716.53
7.3.240.0120.00816.50
7.3.230.0110.00516.39
7.3.210.0100.00716.36
7.3.200.0150.00716.63
7.3.190.0070.01016.45
7.3.180.0030.01316.63
7.3.170.0090.00916.76
7.3.160.0070.01016.96
7.2.330.0120.00616.70
7.2.320.0060.01616.99
7.2.310.0100.01016.86
7.2.300.0140.00317.07
7.2.290.0030.01317.01
7.2.60.0150.00016.87
7.2.00.0030.00919.27
7.1.200.0040.00815.96
7.1.100.0100.00818.31
7.1.70.0000.00717.21
7.1.60.0070.01719.36
7.1.50.0040.01816.85
7.1.00.0030.07722.45
7.0.200.0000.00816.95
7.0.60.0130.06719.97
7.0.50.0070.03717.88
7.0.40.0100.07720.23
7.0.30.0270.04720.09
7.0.20.0270.04720.09
7.0.10.0100.08720.17
7.0.00.0130.07720.01
5.6.280.0000.03721.04
5.6.210.0030.04020.72
5.6.200.0100.03718.08
5.6.190.0030.04720.39
5.6.180.0330.07720.61
5.6.170.0330.07320.63
5.6.160.0170.04720.38
5.6.150.0030.08318.18
5.6.140.0130.07318.07
5.6.130.0130.07018.19
5.6.120.0100.03721.14
5.6.110.0030.08720.95
5.6.100.0170.07321.13
5.6.90.0070.07720.94
5.6.80.0130.07320.48
5.5.350.0200.09020.34
5.5.340.0070.03718.02
5.5.330.0100.04020.47
5.5.320.0430.04020.21
5.5.310.0170.04720.33
5.5.300.0130.07317.88
5.5.290.0130.07317.91
5.5.280.0130.08020.79
5.5.270.0130.08020.87
5.5.260.0100.07320.64
5.5.250.0100.06020.68
5.5.240.0170.06720.05

preferences:
43.58 ms | 401 KiB | 5 Q