3v4l.org

run code in 300+ PHP versions simultaneously
<?php $epoch = "1394031420"; $newepoch = time(); $start = new DateTime("@$epoch"); $start->modify('first day of this month'); $end = new DateTime("@$newepoch"); $end->modify('first day of next month'); $interval = DateInterval::createFromDateString('1 month'); $period = new DatePeriod($start, $interval, $end); foreach ($period as $dt) { echo $dt->format("M-d-y"); echo strtotime(date("M-d-y", strtotime($dt)) . " +15 days"); }

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)
7.4.10.0100.01015.39
7.4.00.0060.01115.32
7.3.130.0070.01015.14
7.3.120.0060.01315.15
7.3.110.0130.00615.01
7.3.100.0000.01215.12
7.3.90.0060.00315.07
7.3.80.0040.01115.09
7.3.70.0040.00715.16
7.3.60.0000.00914.94
7.3.50.0060.00314.80
7.3.40.0070.00315.10
7.3.30.0060.00615.02
7.3.20.0060.00616.82
7.3.10.0080.00316.78
7.3.00.0070.00616.96
7.2.260.0090.00915.08
7.2.250.0160.00315.23
7.2.240.0060.00915.44
7.2.230.0000.01614.98
7.2.220.0060.01015.05
7.2.210.0040.01115.62
7.2.200.0060.00615.08
7.2.190.0070.01015.22
7.2.180.0070.00715.29
7.2.170.0060.00915.05
7.2.160.0070.00415.11
7.2.150.0050.00516.86
7.2.140.0150.00017.18
7.2.130.0100.00517.09
7.2.120.0080.00817.05
7.2.110.0050.00717.17
7.2.100.0090.00516.99
7.2.90.0060.00617.22
7.2.80.0040.00717.25
7.2.70.0090.00617.16
7.2.60.0050.00817.16
7.2.50.0000.01317.11
7.2.40.0080.00517.22
7.2.30.0090.00317.23
7.2.20.0050.00617.20
7.2.10.0040.00817.28
7.2.00.0060.00917.84
7.1.330.0130.00015.96
7.1.320.0090.00016.14
7.1.310.0000.00916.22
7.1.300.0060.00615.88
7.1.290.0040.00816.11
7.1.280.0090.00616.19
7.1.270.0090.00615.98
7.1.260.0030.01016.03
7.1.250.0040.00915.78
7.1.240.0130.00316.03
7.1.230.0060.00615.88
7.1.220.0080.00315.94
7.1.210.0050.00516.16
7.1.200.0000.00915.97
7.1.190.0060.00316.03
7.1.180.0050.00516.20
7.1.170.0000.00915.92
7.1.160.0120.00316.05
7.1.150.0040.00716.02
7.1.140.0100.00315.98
7.1.130.0040.00815.96
7.1.120.0100.00715.91
7.1.110.0040.01115.92
7.1.100.0030.01117.13
7.1.90.0030.00716.18
7.1.80.0150.00016.12
7.1.70.0020.01216.65
7.1.60.0090.01117.94
7.1.50.0040.00916.58
7.1.40.0030.01215.79
7.1.30.0030.01216.06
7.1.20.0080.00616.06
7.1.10.0070.00315.98
7.1.00.0030.04319.20
7.0.330.0040.00715.37
7.0.320.0040.01115.35
7.0.310.0000.01015.58
7.0.300.0070.00715.60
7.0.290.0080.00315.57
7.0.280.0060.00615.55
7.0.270.0030.01015.32
7.0.260.0070.01015.60
7.0.250.0030.00615.61
7.0.240.0060.00615.37
7.0.230.0060.00615.75
7.0.220.0060.00915.59
7.0.210.0060.00315.55
7.0.200.0020.00715.99
7.0.190.0050.00515.60
7.0.180.0000.01315.59
7.0.170.0030.00915.34
7.0.160.0060.00615.55
7.0.150.0050.00515.71
7.0.140.0050.03818.69
7.0.130.0090.00015.66
7.0.120.0000.01215.47
7.0.110.0000.01115.57
7.0.100.0060.00315.72
7.0.90.0000.00815.74
7.0.80.0230.02717.79
7.0.70.0050.02517.62
7.0.60.0150.02017.75
7.0.50.0170.03217.88
7.0.40.0040.02516.76
7.0.30.0030.02116.85
7.0.20.0030.02016.93
7.0.10.0060.01816.89
7.0.00.0040.02416.94
5.6.400.0120.00614.85
5.6.390.0090.00614.54
5.6.380.0030.01214.57
5.6.370.0000.01314.52
5.6.360.0080.00614.22
5.6.350.0100.00314.58
5.6.340.0060.00314.50
5.6.330.0030.00614.16
5.6.320.0040.00714.32
5.6.310.0060.00914.52
5.6.300.0090.00614.36
5.6.290.0060.00614.45
5.6.280.0030.04017.84
5.6.270.0000.01314.57
5.6.260.0030.00514.53
5.6.250.0070.00414.60
5.6.240.0040.00814.66
5.6.230.0100.02117.38
5.6.220.0060.02117.37
5.6.210.0050.02617.51
5.6.200.0060.02017.80
5.6.190.0030.02617.66
5.6.180.0040.02917.76
5.6.170.0060.02317.91
5.6.160.0000.02717.69
5.6.150.0080.01817.66
5.6.140.0100.02017.87
5.6.130.0000.03217.86
5.6.120.0060.02317.70
5.6.110.0040.03517.85
5.6.100.0020.02517.69
5.6.90.0060.02317.72
5.6.80.0050.02317.45
5.6.70.0080.02017.31
5.6.60.0050.02117.32
5.6.50.0070.02917.26
5.6.40.0080.02217.50
5.6.30.0110.03517.44
5.6.20.0100.03717.34
5.6.10.0070.04217.36
5.6.00.0080.04317.45
5.5.380.0000.01114.38
5.5.370.0080.02017.40
5.5.360.0070.04017.38
5.5.350.0100.03317.33
5.5.340.0040.02217.58
5.5.330.0050.02317.58
5.5.320.0050.02717.69
5.5.310.0060.01717.76
5.5.300.0110.03017.54
5.5.290.0030.02617.57
5.5.280.0060.02417.57
5.5.270.0080.02317.49
5.5.260.0070.02317.63
5.5.250.0050.02217.47
5.5.240.0060.02017.31
5.5.230.0070.02217.07
5.5.220.0050.04117.23
5.5.210.0120.04117.29
5.5.200.0060.03917.28
5.5.190.0080.03017.18
5.5.180.0080.04717.21
5.5.170.0000.01614.18
5.5.160.0060.04317.17
5.5.150.0070.04717.31
5.5.140.0110.03817.25
5.5.130.0050.04217.36
5.5.120.0050.02917.36
5.5.110.0080.04417.33
5.5.100.0050.03817.40
5.5.90.0030.03117.22
5.5.80.0070.02817.19
5.5.70.0050.04617.27
5.5.60.0070.03017.11
5.5.50.0090.02317.27
5.5.40.0080.03017.14
5.5.30.0090.02817.12
5.5.20.0070.04017.36
5.5.10.0110.03417.30
5.5.00.0120.04317.20
5.4.450.0020.02115.86
5.4.440.0030.02615.87
5.4.430.0060.03615.94
5.4.420.0050.02015.86
5.4.410.0030.01815.79
5.4.400.0030.04115.75
5.4.390.0080.01815.63
5.4.380.0020.02515.63
5.4.370.0060.04315.79
5.4.360.0050.04015.75
5.4.350.0070.02015.69
5.4.340.0030.05015.75
5.4.330.0070.00712.44
5.4.320.0080.03815.75
5.4.310.0150.03515.69
5.4.300.0030.03815.73
5.4.290.0020.03515.74
5.4.280.0030.02515.73
5.4.270.0040.03115.62
5.4.260.0050.04015.75
5.4.250.0070.03015.62
5.4.240.0090.03915.70
5.4.230.0060.04015.74
5.4.220.0080.03315.75
5.4.210.0060.02215.73
5.4.200.0020.04615.74
5.4.190.0070.03815.69
5.4.180.0030.04415.79
5.4.170.0070.04215.77
5.4.160.0080.02515.60
5.4.150.0120.04615.76
5.4.140.0080.03514.40
5.4.130.0050.03814.38
5.4.120.0070.03014.36
5.4.110.0030.03014.40
5.4.100.0050.04014.44
5.4.90.0060.03514.37
5.4.80.0030.02014.35
5.4.70.0040.02114.46
5.4.60.0050.04014.34
5.4.50.0020.02514.42
5.4.40.0050.04014.34
5.4.30.0050.03314.36
5.4.20.0070.03314.33
5.4.10.0050.04214.36
5.4.00.0020.04514.10
5.3.290.0070.03013.48
5.3.280.0020.04213.44
5.3.270.0100.03513.43
5.3.260.0050.04513.52
5.3.250.0030.04213.51
5.3.240.0100.03013.45
5.3.230.0000.04413.50
5.3.220.0040.04413.51
5.3.210.0080.03513.48
5.3.200.0030.03313.46
5.3.190.0000.02913.46
5.3.180.0070.03713.47
5.3.170.0100.02913.50
5.3.160.0050.04013.47
5.3.150.0060.03513.51
5.3.140.0070.04013.49
5.3.130.0060.04313.50
5.3.120.0030.03413.42
5.3.110.0030.03013.41
5.3.100.0050.03513.16
5.3.90.0030.04313.20
5.3.80.0050.03713.10
5.3.70.0000.02513.22
5.3.60.0080.03713.14
5.3.50.0030.04013.18
5.3.40.0100.03713.17
5.3.30.0020.03213.14
5.3.20.0060.03613.04
5.3.10.0030.02812.92
5.3.00.0050.02712.92
5.2.170.0100.05311.10
5.2.160.0070.05711.07
5.2.150.0070.06011.14
5.2.140.0000.04011.13
5.2.130.0100.05711.08
5.2.120.0070.06311.14
5.2.110.0030.06311.14
5.2.100.0030.03710.95
5.2.90.0070.05711.09
5.2.80.0030.06310.94
5.2.70.0100.05011.13
5.2.60.0030.05310.84
5.2.50.0070.06011.04
5.2.40.0100.05711.04
5.2.30.0100.05710.95
5.2.20.0070.05010.95
5.2.10.0030.06010.94
5.2.00.0030.06010.64
5.1.60.0000.04010.00
5.1.50.0070.05310.09
5.1.40.0070.04710.04
5.1.30.0100.04710.25
5.1.20.0130.04310.41
5.1.10.0070.05710.11
5.1.00.0000.05010.07
5.0.50.0000.0438.56
5.0.40.0070.0408.42
5.0.30.0030.0608.07
5.0.20.0070.0208.29
5.0.10.0070.0208.26
5.0.00.0030.0608.27
4.4.90.0030.0377.11
4.4.80.0000.0277.11
4.4.70.0000.0277.11
4.4.60.0000.0407.11
4.4.50.0070.0237.11
4.4.40.0000.0337.11
4.4.30.0000.0277.11
4.4.20.0030.0277.11
4.4.10.0070.0337.11
4.4.00.0000.0537.11
4.3.110.0030.0377.11
4.3.100.0000.0377.11
4.3.90.0030.0377.11
4.3.80.0070.0507.11
4.3.70.0030.0337.11
4.3.60.0000.0307.11
4.3.50.0070.0277.11
4.3.40.0000.0537.11
4.3.30.0000.0377.11
4.3.20.0000.0377.11
4.3.10.0030.0337.11
4.3.00.0000.0277.11

preferences:
41.8 ms | 400 KiB | 5 Q