3v4l.org

run code in 300+ PHP versions simultaneously
<?php $startDate = new DateTime('2018-05-07'); $endDate = new DateTime('2019-07-04'); $dateInterval = new DateInterval('P1D'); $datePeriod = new DatePeriod($startDate, $dateInterval, $endDate); $fourteenths = []; foreach ($datePeriod as $dt) { if ($dt->format('d') == '14') { // Note this is losely checked! $fourteenths[] = $dt->format('Y-m-d'); } } echo count($fourteenths) . PHP_EOL; var_dump($fourteenths);

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.5.10.0100.01116.59
8.5.00.0150.01120.04
8.4.160.0110.01023.20
8.4.150.0010.00114.05
8.4.140.0110.01317.73
8.4.130.0120.00917.80
8.4.120.0090.00920.50
8.4.110.0110.01022.09
8.4.100.0110.01118.97
8.4.90.0120.00918.66
8.4.80.0060.00318.00
8.4.70.0120.00918.20
8.4.60.0100.01219.01
8.4.50.0050.00718.89
8.4.40.0070.01417.80
8.4.30.0170.00317.84
8.4.20.0090.01219.60
8.4.10.0070.01018.00
8.3.280.0130.00820.32
8.3.270.0140.00716.91
8.3.260.0120.01016.68
8.3.250.0120.00919.25
8.3.240.0160.00516.74
8.3.230.0110.00816.56
8.3.220.0100.01017.27
8.3.210.0110.00816.79
8.3.200.0060.00416.73
8.3.190.0080.01317.20
8.3.180.0100.01116.52
8.3.170.0030.01317.38
8.3.160.0100.01018.70
8.3.150.0130.00616.97
8.3.140.0030.00616.69
8.3.130.0040.00418.74
8.3.120.0090.00018.73
8.3.110.0030.01720.94
8.3.100.0070.00316.71
8.3.90.0040.00426.77
8.3.80.0000.01019.36
8.3.70.0110.00718.55
8.3.60.0110.00818.31
8.3.50.0090.00618.36
8.3.40.0090.00618.96
8.3.30.0130.00618.92
8.3.20.0030.00619.28
8.3.10.0030.00621.90
8.3.00.0080.00023.51
8.2.290.0120.00720.40
8.2.280.0090.00818.33
8.2.270.0150.00417.20
8.2.260.0000.00818.89
8.2.250.0160.00319.14
8.2.240.0070.00317.37
8.2.230.0000.01022.58
8.2.220.0060.00324.06
8.2.210.0040.00426.77
8.2.200.0070.00318.88
8.2.190.0160.00616.88
8.2.180.0000.01518.43
8.2.170.0060.00922.96
8.2.160.0070.00719.49
8.2.150.0070.00324.18
8.2.140.0030.00624.66
8.2.130.0050.00320.94
8.2.120.0050.00326.16
8.2.110.0060.00322.03
8.2.100.0040.00818.03
8.2.90.0060.00318.03
8.2.80.0060.00319.29
8.2.70.0040.00417.75
8.2.60.0060.00317.75
8.2.50.0030.00617.75
8.2.40.0060.00319.60
8.2.30.0000.00819.52
8.2.20.0000.00818.09
8.2.10.0030.00620.03
8.2.00.0040.00419.40
8.1.330.0110.00922.18
8.1.320.0090.00516.20
8.1.310.0030.00718.62
8.1.300.0030.00716.14
8.1.290.0050.00530.84
8.1.280.0090.00925.92
8.1.270.0050.00323.99
8.1.260.0080.00026.35
8.1.250.0030.00628.09
8.1.240.0030.00622.73
8.1.230.0030.00920.89
8.1.220.0030.00617.91
8.1.210.0040.00418.85
8.1.200.0030.00617.66
8.1.190.0000.00817.48
8.1.180.0050.00318.10
8.1.170.0000.00819.03
8.1.160.0080.00018.86
8.1.150.0050.00319.02
8.1.140.0040.00417.79
8.1.130.0040.00419.10
8.1.120.0000.00817.75
8.1.110.0000.00817.70
8.1.100.0040.00417.57
8.1.90.0000.00817.68
8.1.80.0000.00817.53
8.1.70.0000.00817.58
8.1.60.0030.00917.75
8.1.50.0030.00617.66
8.1.40.0060.00317.68
8.1.30.0060.00317.85
8.1.20.0030.00617.74
8.1.10.0040.00417.73
8.1.00.0030.00617.73
8.0.300.0030.00620.09
8.0.290.0040.00417.00
8.0.280.0000.00718.39
8.0.270.0040.00417.40
8.0.260.0030.00317.23
8.0.250.0000.00817.16
8.0.240.0000.01017.12
8.0.230.0030.00517.04
8.0.220.0040.00417.09
8.0.210.0030.00516.99
8.0.200.0030.00517.07
8.0.190.0040.00417.10
8.0.180.0000.00817.15
8.0.170.0000.00917.09
8.0.160.0030.00517.05
8.0.150.0090.00017.08
8.0.140.0000.00717.02
8.0.130.0030.00313.49
8.0.120.0040.00417.10
8.0.110.0000.01017.14
8.0.100.0040.00417.11
8.0.90.0000.00817.07
8.0.80.0030.01317.11
8.0.70.0030.00517.02
8.0.60.0040.00417.16
8.0.50.0000.00817.01
8.0.30.0090.01117.33
8.0.20.0050.01417.50
8.0.10.0050.00317.13
8.0.00.0090.01117.05
7.4.330.0050.00015.55
7.4.320.0030.00316.71
7.4.300.0030.00316.65
7.4.290.0040.00416.68
7.4.280.0040.00416.67
7.4.270.0060.00616.67
7.4.260.0040.00416.68
7.4.250.0030.00516.53
7.4.240.0060.00316.68
7.4.230.0000.00816.78
7.4.220.0000.00916.71
7.4.210.0090.01116.76
7.4.200.0040.00416.46
7.4.160.0030.01416.72
7.4.140.0150.00517.86
7.4.130.0180.00616.55
7.4.120.0110.01116.71
7.4.110.0110.00716.79
7.4.100.0140.01016.59
7.4.90.0160.00916.82
7.4.80.0070.01119.39
7.4.70.0190.00016.79
7.4.60.0130.00316.88
7.4.50.0070.01116.76
7.4.40.0120.00616.64
7.4.00.0100.00314.93
7.3.330.0030.00313.25
7.3.320.0000.00613.31
7.3.310.0070.00016.36
7.3.300.0080.00016.40
7.3.290.0000.00716.43
7.3.280.0070.01116.42
7.3.260.0080.01116.66
7.3.240.0090.01316.63
7.3.230.0040.01516.44
7.3.210.0100.01416.59
7.3.200.0100.00716.60
7.3.190.0090.00916.76
7.3.180.0100.00716.40
7.3.170.0030.01416.53
7.3.160.0160.00916.89
7.3.100.0030.01314.93
7.3.90.0070.01414.96
7.3.80.0110.00415.08
7.3.70.0120.00314.77
7.3.60.0080.00914.87
7.3.50.0140.00314.89
7.3.40.0030.01214.84
7.3.30.0000.01415.00
7.3.20.0110.00514.67
7.3.10.0030.01315.66
7.3.00.0100.00915.90
7.2.330.0130.01216.80
7.2.320.0090.01217.06
7.2.310.0100.01616.80
7.2.300.0130.01317.05
7.2.290.0100.01017.00
7.2.230.0060.00915.05
7.2.220.0120.00615.54
7.2.210.0120.00315.38
7.2.200.0030.01315.16
7.2.190.0030.01415.05
7.2.180.0060.00915.30
7.2.170.0060.01015.22
7.2.160.0060.00915.16
7.2.150.0120.00315.06
7.2.140.0050.01115.30
7.2.130.0110.01016.22
7.2.120.0060.00916.02
7.2.110.0070.01116.18
7.2.100.0040.01316.13
7.2.90.0050.00816.06
7.2.80.0080.01016.13
7.2.70.0260.01215.90
7.2.60.0350.00715.76
7.2.50.0380.00815.68
7.2.40.0360.00915.84
7.2.30.0140.01015.86
7.2.20.0250.01115.65
7.2.10.0440.00815.69
7.2.00.0370.00915.78
7.1.320.0090.00614.16
7.1.310.0070.01013.77
7.1.300.0060.00914.27
7.1.290.0060.00913.96
7.1.280.0060.00913.80
7.1.270.0100.00713.89
7.1.260.0030.01014.16
7.1.250.0080.00615.06
7.1.240.0090.00613.88
7.1.230.0070.01113.83
7.1.220.0130.00313.77
7.1.210.0110.00514.09
7.1.200.0060.00815.00
7.1.190.0060.00913.74
7.1.180.0110.00414.09
7.1.170.0960.00514.02
7.1.160.0680.01313.77
7.1.150.0610.00713.89
7.1.140.0420.01213.94
7.1.130.0650.00813.95
7.1.120.0620.00813.81
7.1.110.0570.00813.81
7.1.100.0540.01013.79
7.1.90.0310.00914.06
7.1.80.0340.01013.88
7.1.70.0100.01214.08
7.1.60.0560.01123.03
7.1.50.0420.01222.92
7.1.40.0500.00922.97
7.1.30.0650.01922.88
7.1.20.0450.01422.76
7.1.10.1560.00614.00
7.1.00.0330.01114.12
7.0.330.0090.01213.79
7.0.320.0140.00813.36
7.0.310.0070.01413.45
7.0.300.0550.01113.41
7.0.290.0230.00813.54
7.0.280.0110.01113.46
7.0.270.0070.01513.62
7.0.260.0110.00913.55
7.0.250.0090.01513.49
7.0.240.0110.01113.69
7.0.230.0170.00613.67
7.0.220.0100.00813.60
7.0.210.0140.01013.93
7.0.200.0150.01113.49
7.0.190.0180.00413.64
7.0.180.0080.01413.68
7.0.170.0080.01713.75
7.0.160.0130.01213.72
7.0.150.0140.01013.38
7.0.140.0050.01413.58
7.0.130.0140.00713.81
7.0.120.0090.00913.69
7.0.110.0110.01413.40
7.0.100.0070.01013.64
7.0.90.0180.00613.57
7.0.80.0120.01313.62
7.0.70.0110.01113.46
7.0.60.0210.00513.75
7.0.50.0110.01313.74
7.0.40.0140.00713.33
7.0.30.0120.00613.49
7.0.20.0100.00713.66
7.0.10.0190.00813.54
7.0.00.0040.02113.74
5.6.400.0110.00414.31
5.6.390.0150.00914.51
5.6.380.0040.01214.68
5.6.370.0140.00614.29
5.6.360.0030.01414.24
5.6.350.0080.00814.24
5.6.340.0120.01514.29
5.6.330.0110.00914.44
5.6.320.0090.01414.49
5.6.310.0090.01814.45
5.6.300.0130.00914.40
5.6.290.0080.01614.34
5.6.280.0150.00914.58
5.6.270.0140.00714.50
5.6.260.0030.02014.37
5.6.250.0140.00514.30
5.6.240.0130.00614.09
5.6.230.0080.01514.32
5.6.220.0070.01314.32
5.6.210.0150.01214.37
5.6.200.0070.01314.37
5.6.190.0110.00714.37
5.6.180.0070.01114.45
5.6.170.0180.00914.41
5.6.160.0070.01914.05
5.6.150.0120.01514.57
5.6.140.0150.01514.32
5.6.130.0250.00414.31
5.6.120.0050.01914.41
5.6.110.0100.01314.21
5.6.100.0130.01014.38
5.6.90.0140.00714.61
5.6.80.0150.01114.16
5.6.70.0160.01314.36
5.6.60.0060.01914.24
5.6.50.0080.01113.93
5.6.40.0120.00914.29
5.6.30.0160.00614.39
5.6.20.0140.00714.41
5.6.10.0160.00414.06
5.6.00.0120.00914.30
5.5.380.0090.01514.16
5.5.370.0130.01314.07
5.5.360.0090.01214.42
5.5.350.0110.00614.36
5.5.340.0050.01314.06
5.5.330.0040.01314.09
5.5.320.0110.01114.38
5.5.310.0140.01513.88
5.5.300.0120.01914.55
5.5.290.0110.00814.12
5.5.280.0120.00614.38
5.5.270.0070.01414.36
5.5.260.0150.00914.68
5.5.250.0170.01014.26
5.5.240.0160.00614.33
5.5.230.0110.01113.82
5.5.220.0130.00813.82
5.5.210.0200.01014.36
5.5.200.0150.00614.10
5.5.190.0190.00414.12
5.5.180.0170.00814.40
5.5.170.0140.00514.04
5.5.160.0120.01014.32
5.5.150.0100.01314.44
5.5.140.0090.01214.32
5.5.130.0120.00614.30
5.5.120.0150.00813.97
5.5.110.0070.01114.27
5.5.100.0070.01114.28
5.5.90.0110.00714.14
5.5.80.0030.01414.13
5.5.70.0060.01614.15
5.5.60.0100.00714.31
5.5.50.0130.00614.26
5.5.40.0100.00714.43
5.5.30.0080.02014.58
5.5.20.0200.00814.03
5.5.10.0140.00514.36
5.5.00.0120.01114.22
5.4.450.0060.00911.27
5.4.440.0030.01411.21
5.4.430.0100.00511.14
5.4.420.0110.00911.14
5.4.410.0120.00810.89
5.4.400.0060.01011.21
5.4.390.0130.00711.04
5.4.380.0120.00410.79
5.4.370.0140.00710.80
5.4.360.0140.00511.00
5.4.350.0000.01510.86
5.4.340.0110.00810.94
5.4.330.0120.00411.09
5.4.320.0190.00311.45
5.4.310.0000.01810.89
5.4.300.0000.01410.79
5.4.290.0060.00911.07
5.4.280.0120.00410.67
5.4.270.0030.01110.61
5.4.260.0130.00010.92
5.4.250.0090.00611.00
5.4.240.0150.00611.14
5.4.230.0070.01010.97
5.4.220.0040.01111.17
5.4.210.0130.00010.57
5.4.200.0030.01211.13
5.4.190.0130.00710.70
5.4.180.0100.01011.01
5.4.170.0080.00611.00
5.4.160.0090.00610.70
5.4.150.0070.00711.11
5.4.140.0030.01610.95
5.4.130.0070.01011.15
5.4.120.0080.00811.02
5.4.110.0090.00610.82
5.4.100.0000.01811.28
5.4.90.0100.00710.99
5.4.80.0040.01111.07
5.4.70.0040.01110.95
5.4.60.0090.01111.05
5.4.50.0000.01611.13
5.4.40.0120.01211.29
5.4.30.0130.00311.11
5.4.20.0110.00611.14
5.4.10.0150.00611.33
5.4.00.0180.00411.05
5.3.290.0070.01310.17
5.3.280.0100.00310.17
5.3.270.0140.00010.18
5.3.260.0070.00710.18
5.3.250.0140.00710.17
5.3.240.0110.00710.17
5.3.230.0110.00410.17
5.3.220.0110.01010.17
5.3.210.0110.00410.20
5.3.200.0130.00710.17
5.3.190.0100.00310.18
5.3.180.0090.00610.30
5.3.170.0140.00310.28
5.3.160.0130.00310.35
5.3.150.0120.00810.29
5.3.140.0150.00410.17
5.3.130.0120.00210.32
5.3.120.0070.00710.17
5.3.110.0110.00810.20
5.3.100.0110.00710.17
5.3.90.0120.00610.23
5.3.80.0110.00710.17
5.3.70.0070.01110.17
5.3.60.0050.01310.20
5.3.50.0130.00710.17
5.3.40.0140.00010.17
5.3.30.0040.01210.17
5.3.20.0100.00510.17
5.3.10.0120.00010.17
5.3.00.0120.00010.17
5.2.170.0100.00510.17
5.2.160.0120.00410.17
5.2.150.0040.00710.17
5.2.140.0070.00510.17
5.2.130.0030.00810.17
5.2.120.0050.00510.17
5.2.110.0000.01110.17
5.2.100.0040.00710.17
5.2.90.0030.00710.17
5.2.80.0110.00010.17
5.2.70.0040.00810.17
5.2.60.0050.01010.17
5.2.50.0100.00210.17
5.2.40.0070.00410.17
5.2.30.0100.00010.17
5.2.20.0040.00810.17
5.2.10.0110.00410.17
5.2.00.0050.00610.17
5.1.60.0050.00510.17
5.1.50.0050.00410.17
5.1.40.0080.00010.17
5.1.30.0030.00610.17
5.1.20.0060.00310.17
5.1.10.0090.00010.17
5.1.00.0070.00210.17
5.0.50.0050.00310.17
5.0.40.0080.00010.17
5.0.30.0050.00310.17
5.0.20.0000.00710.17
5.0.10.0000.00810.17
5.0.00.0050.00310.17
4.4.90.0040.00410.17
4.4.80.0040.00210.17
4.4.70.0080.00010.17
4.4.60.0080.00010.17
4.4.50.0000.00910.17
4.4.40.0060.00010.17
4.4.30.0070.00010.17
4.4.20.0040.00410.17
4.4.10.0000.00710.17
4.4.00.0000.00610.17
4.3.110.0040.00210.17
4.3.100.0040.00210.17
4.3.90.0060.00010.17
4.3.80.0030.00310.17
4.3.70.0070.00010.17
4.3.60.0030.00310.17
4.3.50.0000.00610.17
4.3.40.0000.00610.17
4.3.30.0030.00310.17
4.3.20.0040.00410.17
4.3.10.0030.00310.17
4.3.00.0000.00710.17

preferences:
45.62 ms | 403 KiB | 5 Q