3v4l.org

run code in 300+ PHP versions simultaneously
<?php $month = 2; $year = 2017; $week = date("W", strtotime($year . "-" . $month ."-01")); Echo date("d/m/Y", strtotime($year . "-" . $month ."-01")) ." - "; $unix = strtotime($year."W".$week ."+1 week"); While(date("m", $unix) == $month){ Echo date("d/m/Y", $unix-86400) . "\n"; Echo date("d/m/Y", $unix) ." - "; $unix = $unix + (86400*7); } Echo date("d/m/Y", strtotime("last day of ".$year . "-" . $month));

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.4.140.0140.00817.84
8.4.130.0060.00417.93
8.4.120.0110.00920.45
8.4.110.0110.00922.46
8.4.100.0100.00918.96
8.4.90.0100.01018.84
8.4.80.0110.00919.02
8.4.70.0040.00417.96
8.4.60.0120.00818.67
8.4.50.0050.00418.68
8.4.40.0160.00419.66
8.4.30.0140.00717.56
8.4.20.0060.00319.62
8.4.10.0030.00717.76
8.3.270.0100.00916.84
8.3.260.0120.00716.59
8.3.250.0080.01118.89
8.3.240.0100.00917.29
8.3.230.0150.00616.53
8.3.220.0090.00819.12
8.3.210.0130.00716.61
8.3.200.0100.01016.52
8.3.190.0090.00617.27
8.3.180.0100.00818.58
8.3.170.0160.00317.16
8.3.160.0090.00017.99
8.3.150.0070.01117.18
8.3.140.0060.00318.93
8.3.130.0040.00418.37
8.3.120.0030.00618.97
8.3.110.0110.00020.94
8.3.100.0080.00824.06
8.3.90.0120.00626.77
8.3.80.0100.00317.97
8.3.70.0060.00918.68
8.3.60.0090.00618.32
8.3.50.0100.00718.36
8.3.40.0090.00618.75
8.3.30.0090.00920.84
8.3.20.0070.00721.95
8.3.10.0070.00621.28
8.3.00.0120.00625.22
8.2.290.0120.00720.11
8.2.280.0050.00318.25
8.2.270.0110.00717.05
8.2.260.0060.00320.51
8.2.250.0120.00318.59
8.2.240.0040.00417.42
8.2.230.0040.00422.58
8.2.220.0100.00737.54
8.2.210.0190.00026.77
8.2.200.0080.00317.00
8.2.190.0060.00916.63
8.2.180.0140.00718.42
8.2.170.0140.00722.96
8.2.160.0100.00621.74
8.2.150.0080.00423.57
8.2.140.0100.00423.81
8.2.130.0100.00321.80
8.2.120.0100.00424.66
8.2.110.0060.00622.61
8.2.100.0090.00720.40
8.2.90.0090.00420.65
8.2.80.0070.00621.52
8.2.70.0060.00820.42
8.2.60.0020.01220.42
8.2.50.0060.00720.52
8.2.40.0100.00420.50
8.2.30.0040.01119.63
8.2.20.0070.00819.71
8.2.10.0100.00519.71
8.2.00.0080.00519.72
8.1.330.0070.01221.92
8.1.320.0120.00716.30
8.1.310.0120.00316.94
8.1.300.0070.00318.38
8.1.290.0080.00418.88
8.1.280.0070.01025.92
8.1.270.0090.00522.97
8.1.260.0090.00525.98
8.1.250.0040.00926.03
8.1.240.0060.00823.44
8.1.230.0150.00222.00
8.1.220.0080.00620.35
8.1.210.0080.00620.90
8.1.200.0080.00520.22
8.1.190.0070.00620.22
8.1.180.0070.00720.53
8.1.170.0130.00220.88
8.1.160.0110.00519.87
8.1.150.0090.00320.34
8.1.140.0090.00519.87
8.1.130.0070.00519.45
8.1.120.0080.00319.37
8.1.110.0020.00919.46
8.1.100.0070.00619.00
8.1.90.0100.00419.03
8.1.80.0110.00319.03
8.1.70.0070.00719.07
8.1.60.0080.00819.07
8.1.50.0130.00218.97
8.1.40.0100.00619.03
8.1.30.0100.00619.10
8.1.20.0120.00419.10
8.1.10.0100.00618.99
8.1.00.0120.00519.01
8.0.300.0070.00621.43
8.0.290.0130.00419.98
8.0.280.0110.00619.52
8.0.270.0080.00619.04
8.0.260.0130.00618.96
8.0.250.0120.00519.05
8.0.240.0160.00419.11
8.0.230.0090.00718.57
8.0.220.0130.00418.54
8.0.210.0130.00318.52
8.0.200.0110.00618.61
8.0.190.0140.00418.61
8.0.180.0110.00618.54
8.0.170.0120.00518.59
8.0.160.0150.00318.53
8.0.150.0100.00718.51
8.0.140.0140.00218.54
8.0.130.0120.00617.51
8.0.120.0090.00818.26
8.0.110.0150.00418.26
8.0.100.0120.00518.29
8.0.90.0130.00518.33
8.0.80.0120.00618.08
8.0.70.0100.00818.24
8.0.60.0100.01018.26
8.0.50.0140.00518.26
8.0.30.0100.00617.80
8.0.20.0120.00817.88
8.0.10.0150.00618.15
8.0.00.0110.01018.04
7.4.330.0070.00718.41
7.4.320.0120.00618.80
7.4.300.0150.00518.31
7.4.290.0160.00618.29
7.4.280.0160.00618.24
7.4.270.0150.00718.29
7.4.260.0130.00617.98
7.4.250.0120.00617.94
7.4.240.0120.00617.99
7.4.230.0140.00417.91
7.4.220.0140.00517.95
7.4.210.0170.00517.81
7.4.200.0120.00718.02
7.4.190.0150.00518.06
7.4.180.0120.00818.06
7.4.160.0120.00617.45
7.4.150.0130.00717.70
7.4.140.0130.00717.76
7.4.130.0140.00617.59
7.4.120.0110.01017.32
7.4.110.0100.01017.59
7.4.100.0120.00917.62
7.4.90.0130.00817.61
7.4.80.0120.00917.99
7.4.70.0170.00619.43
7.4.60.0140.00517.64
7.4.50.0160.00417.59
7.4.40.0140.00617.61
7.4.30.0120.00917.61
7.4.20.0120.00617.71
7.4.10.0120.00517.42
7.4.00.0100.00816.95
7.3.330.0130.00417.16
7.3.320.0150.00417.22
7.3.310.0140.00417.79
7.3.300.0120.00517.78
7.3.290.0130.00617.32
7.3.280.0140.00717.61
7.3.270.0140.00617.56
7.3.260.0110.00717.28
7.3.250.0130.00717.28
7.3.240.0120.00817.26
7.3.230.0130.00817.45
7.3.220.0120.00817.54
7.3.210.0120.00617.50
7.3.200.0130.00617.47
7.3.190.0140.00717.43
7.3.180.0130.00517.45
7.3.170.0120.00617.46
7.3.160.0110.00817.44
7.3.150.0150.00517.61
7.3.140.0120.00617.59
7.3.130.0130.00517.20
7.3.120.0120.00616.98
7.3.110.0130.00616.93
7.3.100.0110.00516.92
7.3.90.0130.00517.07
7.3.80.0110.00616.94
7.3.70.0110.00516.97
7.3.60.0110.00616.75
7.3.50.0110.00716.76
7.3.40.0110.00916.73
7.3.30.0100.00716.75
7.3.20.0130.00617.20
7.3.10.0140.00717.14
7.3.00.0160.00717.11
7.2.340.0140.00817.76
7.2.330.0160.00717.64
7.2.320.0160.00617.54
7.2.310.0160.00617.67
7.2.300.0170.00617.62
7.2.290.0150.00717.68
7.2.280.0190.00417.72
7.2.270.0160.00717.75
7.2.260.0170.00517.32
7.2.250.0130.00917.12
7.2.240.0130.01117.06
7.2.230.0160.00517.09
7.2.220.0130.00817.15
7.2.210.0150.00717.08
7.2.200.0160.00717.17
7.2.190.0130.00816.88
7.2.180.0130.00816.89
7.2.170.0150.00617.00
7.2.160.0170.00717.19
7.2.150.0170.00717.38
7.2.140.0170.00817.46
7.2.130.0170.00717.49
7.2.120.0160.00717.40
7.2.110.0150.00817.43
7.2.100.0150.00717.42
7.2.90.0160.00917.46
7.2.80.0160.00617.43
7.2.70.0130.00917.38
7.2.60.0110.00917.35
7.2.50.0170.00617.38
7.2.40.0170.00617.37
7.2.30.0140.00917.41
7.2.20.0150.01017.39
7.2.10.0170.00617.44
7.2.00.0130.00717.63
7.1.330.0140.00716.77
7.1.320.0130.00716.78
7.1.310.0130.00816.81
7.1.300.0160.00516.50
7.1.290.0160.00816.51
7.1.280.0180.00416.45
7.1.270.0300.00616.51
7.1.260.0140.00816.49
7.1.250.0150.00716.47
7.1.240.0190.00716.55
7.1.230.0160.00716.58
7.1.220.0140.00816.53
7.1.210.0150.00816.52
7.1.200.0150.00716.48
7.1.190.0150.00716.55
7.1.180.0170.00616.56
7.1.170.0160.00716.50
7.1.160.0170.00416.51
7.1.150.0220.00616.54
7.1.140.0180.00816.55
7.1.130.0140.00716.58
7.1.120.0140.00716.80
7.1.110.0150.00716.73
7.1.100.0150.00716.76
7.1.90.0160.00616.77
7.1.80.0140.00716.82
7.1.70.0150.00816.59
7.1.60.0180.01018.66
7.1.50.0170.01018.83
7.1.40.0150.01018.84
7.1.30.0170.00618.77
7.1.20.0140.01018.71
7.1.10.0150.00816.82
7.1.00.0130.00716.58
7.0.330.0160.00616.24
7.0.320.0140.00716.26
7.0.310.0190.00416.27
7.0.300.0170.00616.19
7.0.290.0240.00916.22
7.0.280.0150.00616.25
7.0.270.0160.00616.24
7.0.260.0160.00816.46
7.0.250.0150.00616.58
7.0.240.0140.00616.58
7.0.230.0150.00616.58
7.0.220.0170.00416.45
7.0.210.0160.00616.35
7.0.200.0160.00516.39
7.0.190.0140.00716.57
7.0.180.0170.00616.46
7.0.170.0160.00516.60
7.0.160.0160.00516.54
7.0.150.0160.00616.29
7.0.140.0270.00516.29
7.0.130.0160.00516.33
7.0.120.0130.00916.32
7.0.110.0160.00416.31
7.0.100.0160.00616.37
7.0.90.0140.00716.25
7.0.80.0150.00716.27
7.0.70.0140.00816.27
7.0.60.0150.00716.26
7.0.50.0220.00716.21
7.0.40.0180.00716.56
7.0.30.0140.00516.51
7.0.20.0120.00716.49
7.0.10.0140.00916.59
7.0.00.0150.00716.54
5.6.400.0160.00616.48
5.6.390.0140.00716.56
5.6.380.0110.00916.59
5.6.370.0150.00616.58
5.6.360.0150.00616.52
5.6.350.0150.00716.46
5.6.340.0140.00716.48
5.6.330.0150.00616.53
5.6.320.0130.00916.58
5.6.310.0160.00816.57
5.6.300.0160.01216.92
5.6.290.0170.01016.99
5.6.280.0140.01417.02
5.6.270.0160.01016.96
5.6.260.0130.01317.02
5.6.250.0140.01217.06
5.6.240.0140.01217.03
5.6.230.0120.01317.07
5.6.220.0130.01317.08
5.6.210.0170.01017.13
5.6.200.0130.01417.12
5.6.190.0120.01317.13
5.6.180.0130.01317.04
5.6.170.0150.01017.02
5.6.160.0140.01117.04
5.6.150.0130.01417.08
5.6.140.0140.01317.08
5.6.130.0130.01217.12
5.6.120.0150.01217.09
5.6.110.0130.01317.08
5.6.100.0110.01417.04
5.6.90.0140.01116.99
5.6.80.0140.01316.87
5.6.70.0150.01017.01
5.6.60.0140.01116.96
5.6.50.0140.01016.93
5.6.40.0140.01016.97
5.6.30.0120.01316.93
5.6.20.0160.00916.95
5.6.10.0140.01316.94
5.6.00.0150.01316.94

preferences:
34.86 ms | 403 KiB | 5 Q