3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime('2014-09-13'); $start->modify('first day of this month'); echo $start->format("Y-m-d"); $end = new DateTime(date("Y-m-d")); $end->modify('first day of next month'); echo $end->format("Y-m-d"); $interval = DateInterval::createFromDateString('1 month'); $period = new DatePeriod($start, $interval, $end); foreach ($period as $dt) { echo $dt->format("Y-m-d") . PHP_EOL; }

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.0120.00618.55
8.3.50.0120.00721.98
8.3.40.0120.00318.97
8.3.30.0070.00719.09
8.3.20.0000.00720.15
8.3.10.0040.00421.60
8.3.00.0040.00419.05
8.2.180.0060.00916.75
8.2.170.0140.00422.96
8.2.160.0100.00322.25
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0180.00026.16
8.2.120.0080.00418.16
8.2.110.0070.00322.43
8.2.100.0110.00617.84
8.2.90.0030.00619.34
8.2.80.0090.00018.00
8.2.70.0110.00017.75
8.2.60.0030.00517.92
8.2.50.0060.00318.07
8.2.40.0060.00320.07
8.2.30.0030.00518.06
8.2.20.0030.00517.94
8.2.10.0080.00018.06
8.2.00.0060.00317.84
8.1.280.0070.01425.92
8.1.270.0050.00318.99
8.1.260.0070.00726.35
8.1.250.0070.00028.09
8.1.240.0000.00924.02
8.1.230.0080.00419.18
8.1.220.0080.00017.74
8.1.210.0000.00918.77
8.1.200.0070.00317.73
8.1.190.0000.00917.35
8.1.180.0060.00318.10
8.1.170.0000.00818.84
8.1.160.0050.00321.97
8.1.150.0000.00718.94
8.1.140.0090.00019.53
8.1.130.0040.00417.95
8.1.120.0020.00517.72
8.1.110.0050.00317.69
8.1.100.0030.00717.70
8.1.90.0000.00817.71
8.1.80.0000.00717.67
8.1.70.0030.00517.74
8.1.60.0040.00417.62
8.1.50.0030.00517.70
8.1.40.0000.00817.62
8.1.30.0030.00617.82
8.1.20.0050.00317.74
8.1.10.0000.00717.77
8.1.00.0000.00717.67
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0070.00018.45
8.0.270.0030.00317.44
8.0.260.0030.00517.35
8.0.250.0030.00317.10
8.0.240.0030.00317.20
8.0.230.0090.00017.19
8.0.220.0000.00717.20
8.0.210.0000.00717.11
8.0.200.0000.00717.09
8.0.190.0000.00717.15
8.0.180.0040.00417.20
8.0.170.0040.00417.07
8.0.160.0040.00417.19
8.0.150.0000.00817.14
8.0.140.0040.00417.11
8.0.130.0030.00313.54
8.0.120.0000.00817.12
8.0.110.0000.00817.11
8.0.100.0000.00716.97
8.0.90.0040.00417.16
8.0.80.0190.00017.20
8.0.70.0040.00416.98
8.0.60.0040.00417.11
8.0.50.0070.00017.22
8.0.30.0140.00917.38
8.0.20.0090.01117.40
8.0.10.0050.00217.25
8.0.00.0060.01216.83
7.4.330.0030.00315.03
7.4.320.0030.00316.79
7.4.300.0060.00016.76
7.4.290.0040.00416.79
7.4.280.0030.00616.73
7.4.270.0000.00716.82
7.4.260.0030.00516.79
7.4.250.0000.00716.71
7.4.240.0020.00616.77
7.4.230.0030.00316.89
7.4.220.0060.01216.67
7.4.210.0030.01016.78
7.4.200.0000.00816.78
7.4.160.0100.01016.66
7.4.150.0100.00717.40
7.4.140.0130.00417.86
7.4.130.0070.01316.74
7.4.120.0090.00816.73
7.4.110.0100.01316.80
7.4.100.0140.01016.59
7.4.90.0140.00416.56
7.4.80.0090.00919.39
7.4.70.0030.01316.75
7.4.60.0100.00616.72
7.4.50.0000.00416.49
7.4.40.0090.00916.45
7.4.30.0090.01616.64
7.4.00.0070.01015.12
7.3.330.0000.00713.32
7.3.320.0050.00013.25
7.3.310.0040.00416.55
7.3.300.0030.00316.45
7.3.290.0110.00416.48
7.3.280.0060.01116.49
7.3.270.0110.00617.40
7.3.260.0140.00416.91
7.3.250.0110.00716.59
7.3.240.0030.01316.71
7.3.230.0090.00616.66
7.3.210.0080.00816.77
7.3.200.0060.01219.39
7.3.190.0060.00916.57
7.3.180.0070.01016.84
7.3.170.0110.01116.77
7.3.160.0060.01116.70
7.3.10.0040.01116.87
7.3.00.0090.00616.81
7.2.330.0130.00616.87
7.2.320.0060.01116.90
7.2.310.0120.00616.84
7.2.300.0140.00416.95
7.2.290.0080.01117.05
7.2.130.0030.00617.16
7.2.120.0070.00717.21
7.2.110.0000.01417.00
7.2.100.0000.01417.23
7.2.90.0070.00717.22
7.2.80.0030.00717.16
7.2.70.0070.00717.23
7.2.60.0220.00717.14
7.2.50.0060.00617.27
7.2.40.0060.00617.18
7.2.30.0030.00617.11
7.2.20.0000.01216.94
7.2.10.0090.00317.19
7.2.00.0050.00618.53
7.1.250.0030.01015.88
7.1.240.0040.01115.97
7.1.230.0030.01015.90
7.1.220.0000.01015.94
7.1.210.0080.00415.96
7.1.200.0030.00916.00
7.1.190.0030.00616.05
7.1.180.0060.00316.07
7.1.170.0090.00015.93
7.1.160.0060.00615.77
7.1.150.0070.00315.80
7.1.140.0070.00715.93
7.1.130.0030.00916.09
7.1.120.0030.01016.09
7.1.110.0060.00316.12
7.1.100.0050.00517.16
7.1.90.0080.00815.84
7.1.80.0000.00715.89
7.1.70.0030.00716.59
7.1.60.0050.01017.62
7.1.50.0060.00316.68
7.1.40.0070.00715.91
7.1.30.0040.01215.90
7.1.20.0030.00916.03
7.1.10.0130.00316.13
7.1.00.0030.04519.15
7.0.330.0060.00615.52
7.0.320.0070.00715.74
7.0.310.0030.00715.55
7.0.300.0070.00315.53
7.0.290.0040.00715.55
7.0.280.0030.01015.29
7.0.270.0100.00615.45
7.0.260.0090.00615.71
7.0.250.0070.00715.71
7.0.240.0110.00415.54
7.0.230.0000.01015.57
7.0.220.0100.00715.45
7.0.210.0070.00715.59
7.0.200.0020.01116.13
7.0.190.0000.01315.33
7.0.180.0000.01215.59
7.0.170.0040.00415.62
7.0.160.0040.00715.63
7.0.150.0070.01015.43
7.0.140.0080.02718.83
7.0.130.0110.00415.31
7.0.120.0080.00415.34
7.0.110.0000.01115.72
7.0.100.0170.02217.80
7.0.90.0100.03817.62
7.0.80.0040.02917.77
7.0.70.0170.03817.76
7.0.60.0150.02817.78
7.0.50.0070.04017.96
7.0.40.0070.03016.92
7.0.30.0060.03116.81
7.0.20.0060.02816.93
7.0.10.0070.04216.83
7.0.00.0150.04116.84
5.6.380.0070.01014.71
5.6.370.0040.00914.63
5.6.360.0030.00914.55
5.6.350.0060.00914.42
5.6.340.0000.00914.61
5.6.330.0070.00714.53
5.6.320.0030.01014.59
5.6.310.0000.01214.27
5.6.300.0070.00314.56
5.6.290.0000.01514.28
5.6.280.0180.00014.26
5.6.270.0030.00714.45
5.6.260.0060.01214.21
5.6.250.0070.04217.50
5.6.240.0030.03117.39
5.6.230.0050.04617.44
5.6.220.0060.03317.57
5.6.210.0150.03017.42
5.6.200.0110.02917.63
5.6.190.0070.04417.71
5.6.180.0070.04717.67
5.6.170.0070.04717.80
5.6.160.0040.02517.53
5.6.150.0050.02517.75
5.6.140.0000.03317.83
5.6.130.0080.02117.70
5.6.120.0050.04417.70
5.6.110.0130.02817.79
5.6.100.0080.04717.71
5.6.90.0080.02717.58
5.6.80.0100.04017.48
5.6.70.0030.02617.47
5.6.60.0120.04017.42
5.6.50.0070.03917.41
5.6.40.0080.01917.32
5.6.30.0050.04517.42
5.6.20.0060.04017.53
5.6.10.0080.04217.59
5.6.00.0080.03217.31
5.5.380.0020.04315.99
5.5.370.0070.02516.00
5.5.360.0070.04415.99
5.5.350.0080.04316.03
5.5.340.0050.04416.22
5.5.330.0050.02816.27
5.5.320.0050.04216.25
5.5.310.0080.02716.20
5.5.300.0050.02616.26
5.5.290.0110.03516.13
5.5.280.0120.02316.24
5.5.270.0050.04516.23
5.5.260.0060.04316.21
5.5.250.0050.04716.16
5.5.240.0050.04415.95
5.5.230.0050.04515.94
5.5.220.0100.03515.90
5.5.210.0080.04515.87
5.5.200.0080.04915.86
5.5.190.0030.02515.95
5.5.180.0050.04415.93
5.5.170.0090.00311.64
5.5.160.0020.02315.89
5.5.150.0140.03215.92
5.5.140.0030.04515.88
5.5.130.0060.04315.90
5.5.120.0080.04015.95
5.5.110.0050.03115.86
5.5.100.0080.02515.84
5.5.90.0080.03615.82
5.5.80.0030.02315.84
5.5.70.0110.03515.88
5.5.60.0030.03015.85
5.5.50.0120.04015.80
5.5.40.0050.02315.84
5.5.30.0050.02715.79
5.5.20.0080.03715.88
5.5.10.0070.03715.85
5.5.00.0050.04915.80
5.4.450.0010.04615.46
5.4.440.0070.04015.47
5.4.430.0080.02515.37
5.4.420.0050.02715.43
5.4.410.0070.04215.45
5.4.400.0070.02815.36
5.4.390.0020.02415.31
5.4.380.0050.03915.38
5.4.370.0050.02415.29
5.4.360.0050.02015.28
5.4.350.0070.03615.22
5.4.340.0060.03315.35
5.4.330.0000.01311.64
5.4.320.0060.04115.33
5.4.310.0130.03515.22
5.4.300.0100.03715.37
5.4.290.0050.02515.34
5.4.280.0090.03915.34
5.4.270.0090.03715.30
5.4.260.0060.03515.34
5.4.250.0050.02315.29
5.4.240.0050.02215.29
5.4.230.0070.02415.33
5.4.220.0050.04415.30
5.4.210.0120.03515.26
5.4.200.0060.03315.29
5.4.190.0040.02715.29
5.4.180.0100.02515.30
5.4.170.0080.03115.34
5.4.160.0060.03015.37
5.4.150.0070.04015.37
5.4.140.0030.04313.99
5.4.130.0030.04214.01
5.4.120.0100.03514.03
5.4.110.0070.04214.00
5.4.100.0030.02513.96
5.4.90.0050.04213.95
5.4.80.0100.02814.04
5.4.70.0070.04013.96
5.4.60.0070.04114.01
5.4.50.0050.03514.02
5.4.40.0030.04113.95
5.4.30.0040.04113.99
5.4.20.0070.04013.92
5.4.10.0070.03014.02
5.4.00.0040.04213.70
5.3.290.0030.02813.23
5.3.280.0070.04013.23
5.3.270.0120.02013.23
5.3.260.0070.04213.23
5.3.250.0050.02713.23
5.3.240.0080.03313.23
5.3.230.0090.03813.23
5.3.220.0050.03113.23
5.3.210.0100.04013.23
5.3.200.0080.03613.23
5.3.190.0020.03313.23
5.3.180.0060.04013.23
5.3.170.0090.03013.23
5.3.160.0050.04213.23
5.3.150.0090.04113.23
5.3.140.0050.04213.23
5.3.130.0030.03313.23
5.3.120.0030.02813.23
5.3.110.0050.04313.23
5.3.100.0050.03713.23
5.3.90.0080.04013.23
5.3.80.0050.03613.23
5.3.70.0000.02813.23
5.3.60.0030.04413.23
5.3.50.0080.03513.23
5.3.40.0020.04213.23
5.3.30.0050.04013.23
5.3.20.0020.03813.23
5.3.10.0090.03713.23
5.3.00.0070.02713.23
5.2.170.0060.01713.23
5.2.160.0050.03313.23
5.2.150.0070.02513.23
5.2.140.0050.02813.23
5.2.130.0030.03513.23
5.2.120.0070.02613.23
5.2.110.0040.02713.23
5.2.100.0040.02113.23
5.2.90.0050.03213.23
5.2.80.0030.03513.23
5.2.70.0030.03213.23
5.2.60.0000.03113.23
5.2.50.0050.03013.23
5.2.40.0050.02313.23
5.2.30.0080.03013.23
5.2.20.0010.02613.23
5.2.10.0030.02913.23
5.2.00.0000.01713.23
5.1.60.0070.02813.23
5.1.50.0060.01813.23
5.1.40.0080.01213.23
5.1.30.0030.03113.23
5.1.20.0000.01913.23
5.1.10.0050.02813.23
5.1.00.0020.01513.23
5.0.50.0040.02413.23
5.0.40.0030.01313.23
5.0.30.0030.01813.23
5.0.20.0020.01413.23
5.0.10.0020.01513.23
5.0.00.0030.02913.23
4.4.90.0010.02113.23
4.4.80.0000.01713.23
4.4.70.0000.02113.23
4.4.60.0000.01713.23
4.4.50.0020.01313.23
4.4.40.0020.02013.23
4.4.30.0030.00913.23
4.4.20.0030.02713.23
4.4.10.0040.00813.23
4.4.00.0030.02513.23
4.3.110.0030.01313.23
4.3.100.0020.01013.23
4.3.90.0050.01713.23
4.3.80.0020.01713.23
4.3.70.0020.01513.23
4.3.60.0050.02013.23
4.3.50.0030.01813.23
4.3.40.0000.02413.23
4.3.30.0030.01413.23
4.3.20.0020.01213.23
4.3.10.0000.01213.23
4.3.00.0020.01313.23

preferences:
43.76 ms | 401 KiB | 5 Q