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] ;

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.0090.00917.00
8.3.50.0140.00322.17
8.3.40.0090.00919.04
8.3.30.0140.00018.69
8.3.20.0000.00820.16
8.3.10.0040.00423.66
8.3.00.0120.00919.76
8.2.180.0100.00716.75
8.2.170.0180.00322.96
8.2.160.0110.00420.52
8.2.150.0100.00624.18
8.2.140.0070.00724.66
8.2.130.0030.00617.88
8.2.120.0080.00026.35
8.2.110.0060.00319.31
8.2.100.0120.00018.00
8.2.90.0050.00319.38
8.2.80.0090.00017.97
8.2.70.0040.00418.00
8.2.60.0030.00518.18
8.2.50.0050.00318.07
8.2.40.0050.00319.53
8.2.30.0030.00320.56
8.2.20.0060.00318.12
8.2.10.0040.00418.25
8.2.00.0000.00718.18
8.1.280.0140.00425.92
8.1.270.0060.00323.96
8.1.260.0070.00028.09
8.1.250.0000.00728.09
8.1.240.0090.00023.88
8.1.230.0040.00717.78
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0060.00317.60
8.1.190.0040.00417.72
8.1.180.0000.00818.10
8.1.170.0030.00518.77
8.1.160.0000.00722.07
8.1.150.0040.00419.07
8.1.140.0000.00819.58
8.1.130.0030.00317.79
8.1.120.0030.00417.66
8.1.110.0000.00917.62
8.1.100.0040.00417.64
8.1.90.0050.00217.72
8.1.80.0030.00517.57
8.1.70.0030.00317.68
8.1.60.0090.00017.84
8.1.50.0030.00617.70
8.1.40.0030.00517.66
8.1.30.0090.00017.76
8.1.20.0040.00417.70
8.1.10.0060.00317.79
8.1.00.0030.00717.70
8.0.300.0040.00418.77
8.0.290.0040.00417.00
8.0.280.0000.00718.51
8.0.270.0000.00717.32
8.0.260.0110.00017.39
8.0.250.0070.00017.18
8.0.240.0070.00017.32
8.0.230.0030.00317.32
8.0.220.0030.00617.08
8.0.210.0050.00217.18
8.0.200.0030.00317.16
8.0.190.0000.00817.27
8.0.180.0070.00017.20
8.0.170.0000.00917.30
8.0.160.0000.00717.10
8.0.150.0000.00817.16
8.0.140.0040.00417.09
8.0.130.0000.00613.57
8.0.120.0040.00417.20
8.0.110.0000.00717.24
8.0.100.0000.00717.06
8.0.90.0050.00317.27
8.0.80.0110.01117.17
8.0.70.0050.00317.25
8.0.60.0070.00017.13
8.0.50.0000.00717.01
8.0.30.0120.00917.39
8.0.20.0120.01017.49
8.0.10.0040.00417.21
8.0.00.0060.01117.10
7.4.330.0000.00516.72
7.4.320.0000.00716.77
7.4.300.0070.00016.78
7.4.290.0040.00416.66
7.4.280.0080.00016.80
7.4.270.0000.00816.82
7.4.260.0050.00316.79
7.4.250.0050.00216.77
7.4.240.0040.00316.66
7.4.230.0000.00716.61
7.4.220.0060.01216.70
7.4.210.0050.01016.80
7.4.200.0000.00716.73
7.4.160.0090.00616.58
7.4.150.0100.01017.40
7.4.140.0140.00517.86
7.4.130.0140.00616.71
7.4.120.0100.00716.84
7.4.110.0070.01016.51
7.4.100.0120.00616.82
7.4.90.0060.01216.68
7.4.80.0030.01319.39
7.4.70.0110.00716.71
7.4.60.0060.01016.87
7.4.50.0070.00616.87
7.4.40.0190.00416.81
7.4.30.0120.00616.71
7.4.00.0120.00315.31
7.3.330.0070.00013.35
7.3.320.0080.00013.40
7.3.310.0000.00716.35
7.3.300.0070.00016.47
7.3.290.0070.00016.37
7.3.280.0110.00616.46
7.3.270.0140.00317.40
7.3.260.0120.01116.74
7.3.250.0090.00816.60
7.3.240.0090.00816.63
7.3.230.0100.00716.47
7.3.210.0030.01416.81
7.3.200.0030.01516.63
7.3.190.0100.00716.63
7.3.180.0090.00616.57
7.3.170.0140.00716.70
7.3.160.0110.00516.78
7.3.120.0040.01114.82
7.3.110.0070.00715.05
7.3.100.0000.01314.90
7.3.90.0040.01115.21
7.3.80.0070.00715.02
7.3.70.0040.01114.79
7.3.60.0070.00715.09
7.3.50.0090.00015.16
7.3.40.0110.00414.91
7.3.30.0110.00414.78
7.3.20.0070.00417.02
7.3.10.0100.00016.78
7.3.00.0000.01116.80
7.2.330.0100.00717.14
7.2.320.0070.01716.97
7.2.310.0070.01016.96
7.2.300.0120.00416.43
7.2.290.0100.00716.80
7.2.240.0000.00815.50
7.2.230.0070.01015.58
7.2.220.0000.01215.42
7.2.210.0090.00615.38
7.2.200.0060.00315.50
7.2.190.0040.01414.91
7.2.180.0070.00715.30
7.2.170.0070.01015.02
7.2.160.0070.01015.16
7.2.150.0030.01217.12
7.2.140.0040.00716.84
7.2.130.0040.01416.95
7.2.120.0100.00317.23
7.2.110.0100.00317.23
7.2.100.0060.00917.11
7.2.90.0060.00917.34
7.2.80.0120.00017.22
7.2.70.0060.01017.24
7.2.60.0050.00817.03
7.2.50.0030.01317.22
7.2.40.0030.01417.36
7.2.30.0090.00617.10
7.2.20.0060.00617.25
7.2.10.0040.01117.29
7.2.00.0060.00917.24
7.1.330.0060.00615.97
7.1.320.0080.00816.11
7.1.310.0040.01115.81
7.1.300.0100.00315.92
7.1.290.0070.01016.03
7.1.280.0100.00015.75
7.1.270.0000.01316.02
7.1.260.0070.00715.92
7.1.250.0040.01115.85
7.1.200.0070.00716.03
7.1.100.0090.00618.28
7.1.70.0070.00717.44
7.1.60.0100.01619.36
7.1.50.0100.00317.15
7.1.00.0030.07722.51
7.0.200.0030.00316.66
7.0.60.0070.05720.06
7.0.50.0000.04317.91
7.0.40.0130.06319.98
7.0.30.0400.04020.30
7.0.20.0300.08020.09
7.0.10.0100.08320.00
7.0.00.0030.06320.09
5.6.280.0030.06021.12
5.6.210.0030.07020.76
5.6.200.0030.05318.12
5.6.190.0100.07720.57
5.6.180.0370.07320.67
5.6.170.0270.07020.48
5.6.160.0130.06320.40
5.6.150.0030.05018.11
5.6.140.0000.04318.16
5.6.130.0070.06718.11
5.6.120.0030.04320.96
5.6.110.0100.06321.11
5.6.100.0000.08321.13
5.6.90.0130.07720.94
5.6.80.0130.07020.33
5.5.350.0130.04020.30
5.5.340.0070.03717.98
5.5.330.0070.06320.40
5.5.320.0130.04320.29
5.5.310.0200.04020.13
5.5.300.0000.04318.01
5.5.290.0030.04717.88
5.5.280.0030.05320.68
5.5.270.0100.08020.64
5.5.260.0130.07720.86
5.5.250.0100.07320.79
5.5.240.0170.07720.26

preferences:
44.56 ms | 401 KiB | 5 Q