3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * @param \DateTime $date Date of the original meeting * @return \DateTime Date of the next meeting */ function getSameDayNextYear(\DateTime $date = null) { if(!$date){ $date = new \DateTime(); } return (new \DateTime())->setISODate((int)$date->format('o') + 1, (int)$date->format('W'), (int)$date->format('N')); } $start = new \DateTime(); $end = new \DateTime('+ 4 months'); $interval = new \DateInterval('P5D'); $period = new \DatePeriod($start, $interval, $end); $format = 'l d-m-Y'; foreach($period as $date){ echo $date->format($format) . ' => ' . getSameDayNextYear($date)->format($format) . "\n"; }

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.0060.01016.75
8.3.50.0120.01022.02
8.3.40.0070.00718.96
8.3.30.0090.00618.94
8.3.20.0080.00020.28
8.3.10.0000.00823.64
8.3.00.0080.00022.46
8.2.180.0030.01718.29
8.2.170.0110.00422.96
8.2.160.0070.00722.37
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0040.00422.25
8.2.110.0040.00421.14
8.2.100.0120.00017.91
8.2.90.0040.00419.34
8.2.80.0000.00818.05
8.2.70.0050.00318.00
8.2.60.0030.00617.75
8.2.50.0040.00417.88
8.2.40.0040.00418.05
8.2.30.0050.00218.15
8.2.20.0050.00217.80
8.2.10.0090.00018.07
8.2.00.0040.00418.09
8.1.280.0090.00925.92
8.1.270.0070.00323.97
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0050.00519.38
8.1.230.0070.00419.07
8.1.220.0040.00417.77
8.1.210.0000.00818.77
8.1.200.0040.00417.60
8.1.190.0080.00017.50
8.1.180.0050.00318.10
8.1.170.0090.00017.62
8.1.160.0030.00522.13
8.1.150.0000.00818.87
8.1.140.0020.00517.60
8.1.130.0070.00017.97
8.1.120.0030.00717.70
8.1.110.0070.00517.73
8.1.100.0070.00517.66
8.1.90.0060.00617.66
8.1.80.0080.00417.73
8.1.70.0080.00417.61
8.1.60.0090.00417.73
8.1.50.0070.00617.65
8.1.40.0010.00717.66
8.1.30.0060.00717.74
8.1.20.0080.00517.79
8.1.10.0090.00417.75
8.1.00.0050.00717.80
8.0.300.0000.01019.85
8.0.290.0040.00416.88
8.0.280.0000.00718.52
8.0.270.0000.00717.10
8.0.260.0070.00016.97
8.0.250.0080.00317.22
8.0.240.0080.00317.13
8.0.230.0100.00217.13
8.0.220.0040.00717.13
8.0.210.0080.00417.18
8.0.200.0050.00517.15
8.0.190.0090.00317.14
8.0.180.0080.00417.15
8.0.170.0080.00417.11
8.0.160.0090.00317.09
8.0.150.0080.00317.01
8.0.140.0080.00317.12
8.0.130.0060.00615.33
8.0.120.0010.00617.13
8.0.110.0110.00017.16
8.0.100.0060.00517.10
8.0.90.0020.01017.06
8.0.80.0080.00717.11
8.0.70.0090.00317.06
8.0.60.0050.00617.10
8.0.50.0070.00517.21
8.0.30.0030.01217.19
8.0.20.0080.01117.40
8.0.10.0090.00317.24
8.0.00.0110.00917.02
7.4.330.0000.00515.09
7.4.320.0030.00716.74
7.4.300.0090.00116.62
7.4.290.0060.00616.65
7.4.280.0100.00216.80
7.4.270.0090.00216.81
7.4.260.0080.00416.71
7.4.250.0050.00816.80
7.4.240.0050.00716.71
7.4.230.0060.00616.64
7.4.220.0130.00516.72
7.4.210.0070.01016.80
7.4.200.0070.00316.78
7.4.190.0070.00316.82
7.4.180.0070.00716.68
7.4.160.0060.01016.69
7.4.150.0120.00517.08
7.4.140.0180.01317.43
7.4.130.0090.00816.72
7.4.120.0120.00516.61
7.4.110.0130.00416.72
7.4.100.0100.01016.62
7.4.90.0120.00716.55
7.4.80.0090.01116.65
7.4.70.0110.00816.62
7.4.60.0100.00816.72
7.4.50.0100.00616.66
7.4.40.0090.00918.10
7.4.30.0100.00816.60
7.4.20.0110.00616.68
7.4.10.0130.00416.27
7.4.00.0100.00516.01
7.3.330.0030.00715.05
7.3.320.0070.00314.92
7.3.310.0040.00616.40
7.3.300.0030.00716.48
7.3.290.0070.00716.53
7.3.280.0080.00816.55
7.3.270.0110.00516.96
7.3.260.0090.00916.52
7.3.250.0090.00716.58
7.3.240.0100.00616.58
7.3.230.0130.00216.56
7.3.220.0140.00316.43
7.3.210.0090.00916.57
7.3.200.0090.00917.36
7.3.190.0090.00916.59
7.3.180.0100.00916.55
7.3.170.0140.00716.54
7.3.160.0140.00716.65
7.3.150.0120.00816.56
7.3.140.0160.00616.59
7.3.130.0110.00716.21
7.3.120.0080.00915.88
7.3.110.0110.00916.17
7.3.100.0110.00616.13
7.3.90.0120.00416.24
7.3.80.0110.00816.26
7.3.70.0110.00716.17
7.3.60.0100.00716.17
7.3.50.0090.00816.11
7.3.40.0090.00716.29
7.3.30.0110.00716.17
7.3.20.0110.00616.67
7.3.10.0080.01016.72
7.3.00.0080.01216.63
7.2.340.0110.00416.73
7.2.330.0080.01116.77
7.2.320.0090.00916.87
7.2.310.0140.00616.89
7.2.300.0100.01316.82
7.2.290.0110.00916.76
7.2.280.0100.00716.77
7.2.270.0050.01416.77
7.2.260.0100.01116.40
7.2.250.0100.00816.51
7.2.240.0100.00816.39
7.2.230.0090.00916.38
7.2.220.0120.00816.44
7.2.210.0080.00916.45
7.2.200.0070.01016.49
7.2.190.0090.00816.45
7.2.180.0120.00616.49
7.2.170.0070.01016.50
7.2.160.0080.01116.47
7.2.150.0080.01116.96
7.2.140.0100.00816.97
7.2.130.0120.00616.92
7.2.120.0130.00516.93
7.2.110.0110.00916.94
7.2.100.0120.01016.96
7.2.90.0110.00916.95
7.2.80.0120.00816.95
7.2.70.0080.00916.88
7.2.60.0110.00717.00
7.2.50.0120.00816.93
7.2.40.0140.00716.90
7.2.30.0130.00817.16
7.2.20.0140.00716.86
7.2.10.0140.00816.95
7.2.00.0150.00516.96
7.1.330.0110.01015.87
7.1.320.0140.00515.87
7.1.310.0110.00915.92
7.1.300.0120.00815.78
7.1.290.0140.00615.79
7.1.280.0150.00515.81
7.1.270.0130.00615.81
7.1.260.0120.00815.71
7.1.250.0110.00815.78
7.1.240.0200.00515.79
7.1.230.0100.01115.76
7.1.220.0160.00615.81
7.1.210.0150.00615.65
7.1.200.0120.00815.79
7.1.190.0120.00915.73
7.1.180.0190.00715.79
7.1.170.0120.01015.74
7.1.160.0150.00715.75
7.1.150.0140.00815.75
7.1.140.0160.00615.76
7.1.130.0270.00715.76
7.1.120.0180.00515.70
7.1.110.0180.00715.85
7.1.100.0110.01215.85
7.1.90.0170.00915.78
7.1.80.0130.01015.73
7.1.70.0140.00615.96
7.1.60.0090.01116.13
7.1.50.0120.00816.07
7.1.40.0130.00915.94
7.1.30.0110.00916.04
7.1.20.0130.00815.99
7.1.10.0150.00615.88
7.1.00.0110.00815.96
7.0.330.0110.00815.50
7.0.320.0120.00815.39
7.0.310.0090.01015.28
7.0.300.0140.00615.45
7.0.290.0130.00815.24
7.0.280.0150.00715.47
7.0.270.0250.00815.44
7.0.260.0140.00715.38
7.0.250.0200.00815.44
7.0.240.0100.01215.46
7.0.230.0170.00515.46
7.0.220.0160.00515.46
7.0.210.0130.00815.41
7.0.200.0110.00715.70
7.0.190.0120.00615.72
7.0.180.0140.00815.70
7.0.170.0110.00715.70
7.0.160.0120.00915.68
7.0.150.0100.00915.68
7.0.140.0100.01015.57
7.0.130.0160.00515.63
7.0.120.0110.00915.73
7.0.110.0120.00815.73
7.0.100.0110.00915.67
7.0.90.0120.00915.61
7.0.80.0120.00915.68
7.0.70.0120.00715.61
7.0.60.0110.00715.74
7.0.50.0120.00715.71
7.0.40.0260.00815.26
7.0.30.0180.00715.22
7.0.20.0120.00715.29
7.0.10.0080.00915.21
7.0.00.0140.00915.28
5.6.400.0100.01215.58
5.6.390.0140.00715.54
5.6.380.0140.00815.45
5.6.370.0100.01115.63
5.6.360.0160.00615.65
5.6.350.0140.00715.76
5.6.340.0140.00915.66
5.6.330.0120.01115.68
5.6.320.0130.01115.64
5.6.310.0120.01015.59
5.6.300.0100.02016.61
5.6.290.0100.02416.63
5.6.280.0140.01716.79
5.6.270.0110.02516.72
5.6.260.0160.01916.70
5.6.250.0110.02516.74
5.6.240.0130.02516.71
5.6.230.0140.01716.72
5.6.220.0120.01416.78
5.6.210.0150.02116.78
5.6.200.0130.02316.64
5.6.190.0160.01216.77
5.6.180.0120.01616.75
5.6.170.0110.01816.74
5.6.160.0110.01716.67
5.6.150.0150.01116.71
5.6.140.0110.02416.66
5.6.130.0130.01216.78
5.6.120.0100.01816.70
5.6.110.0140.01616.70
5.6.100.0130.01616.66
5.6.90.0130.01416.61
5.6.80.0140.01216.55
5.6.70.0110.01416.61
5.6.60.0120.01616.50
5.6.50.0110.01516.57
5.6.40.0110.02116.49
5.6.30.0120.01416.51
5.6.20.0100.02216.54
5.6.10.0150.01116.49
5.6.00.0130.02316.51
5.5.380.0130.02316.46
5.5.370.0200.01516.44
5.5.360.0140.01816.39
5.5.350.0130.01916.31
5.5.340.0100.02616.49
5.5.330.0150.02716.52
5.5.320.0110.02016.53
5.5.310.0150.01516.44
5.5.300.0150.02116.42
5.5.290.0100.02416.49
5.5.280.0160.02316.46
5.5.270.0140.02616.47
5.5.260.0150.01716.50
5.5.250.0170.01516.51
5.5.240.0130.01816.26
5.5.230.0160.01516.36
5.5.220.0130.01516.41
5.5.210.0150.01516.32
5.5.200.0130.02416.35
5.5.190.0130.01916.30
5.5.180.0120.01816.25
5.5.170.0200.00615.93
5.5.160.0140.01616.24
5.5.150.0130.01716.19
5.5.140.0130.02316.23
5.5.130.0120.01716.33
5.5.120.0110.02916.24
5.5.110.0130.02016.26
5.5.100.0150.01516.21
5.5.90.0120.01716.21
5.5.80.0130.01616.32
5.5.70.0160.01916.38
5.5.60.0120.01816.30
5.5.50.0180.01316.25
5.5.40.0140.01616.35
5.5.30.0110.01716.24
5.5.20.0120.01916.31
5.5.10.0120.03016.13
5.5.00.0140.01616.16
5.4.450.0100.01614.66
5.4.440.0090.01814.68
5.4.430.0150.01714.75
5.4.420.0110.01614.69
5.4.410.0090.01514.59
5.4.400.0110.01614.53
5.4.390.0120.01614.55
5.4.380.0120.01314.55
5.4.370.0130.01314.58
5.4.360.0100.01814.56
5.4.350.0140.02014.55
5.4.340.0120.01714.61
5.4.330.0140.00813.04
5.4.320.0150.01514.58
5.4.310.0110.01514.53
5.4.300.0130.01414.50
5.4.290.0120.01314.57
5.4.280.0090.02614.56
5.4.270.0070.01914.61
5.4.260.0090.01514.48
5.4.250.0100.01514.40
5.4.240.0110.01414.54
5.4.230.0100.01914.52
5.4.220.0120.01314.51
5.4.210.0120.01314.45
5.4.200.0100.01714.41
5.4.190.0110.02614.46
5.4.180.0100.01814.35
5.4.170.0120.01314.55
5.4.160.0080.01714.44
5.4.150.0100.01614.43
5.4.140.0090.01613.97
5.4.130.0090.02313.93
5.4.120.0110.01213.92
5.4.110.0120.01813.89
5.4.100.0120.02013.90
5.4.90.0080.01813.92
5.4.80.0100.01614.00
5.4.70.0090.01514.04
5.4.60.0120.01314.00
5.4.50.0120.01513.96
5.4.40.0150.01613.87
5.4.30.0100.01613.95
5.4.20.0120.01713.92
5.4.10.0150.01314.01
5.4.00.0090.01613.84
5.3.290.0110.01913.91
5.3.280.0070.02013.83
5.3.270.0100.01613.90
5.3.260.0120.01313.88
5.3.250.0110.01613.85
5.3.240.0120.01613.82
5.3.230.0100.01413.86
5.3.220.0150.01513.83
5.3.210.0130.02213.86
5.3.200.0120.02313.80
5.3.190.0090.01713.83
5.3.180.0090.01913.94
5.3.170.0120.01313.91
5.3.160.0110.01413.94
5.3.150.0090.01813.88
5.3.140.0120.02013.98
5.3.130.0130.01613.98
5.3.120.0130.02413.95
5.3.110.0100.01913.85
5.3.100.0100.01613.94
5.3.90.0090.01513.87
5.3.80.0080.02513.90
5.3.70.0120.01913.86
5.3.60.0100.02313.93
5.3.50.0100.01813.83
5.3.40.0110.01213.87
5.3.30.0100.01813.84
5.3.20.0110.01213.89
5.3.10.0100.01213.73
5.3.00.0080.01613.77

preferences:
48.02 ms | 401 KiB | 5 Q