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")."<BR>"; echo strtotime(date("M-d-y", $dt) . " +15 days")."<BR><BR>"; }

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.2.60.0030.01017.24
7.2.00.0030.01119.78
7.1.200.0000.01615.89
7.1.100.0040.00818.14
7.1.70.0000.01817.36
7.1.60.0100.01419.70
7.1.50.0070.01717.21
7.1.00.0070.07322.32
7.0.200.0030.00617.03
7.0.140.0030.06721.95
7.0.80.0070.07719.88
7.0.70.0100.07319.94
7.0.60.0000.04719.91
7.0.50.0130.04020.30
7.0.40.0070.08720.08
7.0.30.0100.08720.09
7.0.20.0070.07020.09
7.0.10.0300.07019.94
7.0.00.0130.07720.10
5.6.280.0000.07720.91
5.6.230.0130.08720.62
5.6.220.0170.05720.66
5.6.210.0100.07320.49
5.6.200.0170.04720.96
5.6.190.0030.08321.11
5.6.180.0000.06721.03
5.6.170.0070.08021.08
5.6.160.0130.07720.96
5.6.150.0070.06021.06
5.6.140.0130.08321.07
5.6.130.0070.08320.92
5.6.120.0130.05721.07
5.6.110.0130.08321.02
5.6.100.0130.07721.00
5.6.90.0070.06321.09
5.6.80.0070.08320.46
5.6.70.0100.07320.44
5.6.60.0070.04720.37
5.6.50.0070.08020.48
5.6.40.0070.07320.35
5.6.30.0030.07320.45
5.6.20.0030.08020.31
5.6.10.0070.04020.40
5.6.00.0100.07320.29
5.5.370.0070.07720.36
5.5.360.0130.07320.43
5.5.350.0100.07720.47
5.5.340.0030.06720.80
5.5.330.0100.07720.64
5.5.320.0170.06320.86
5.5.310.0030.05720.87
5.5.300.0030.07720.75
5.5.290.0070.08320.89
5.5.280.0100.08020.86
5.5.270.0030.06720.91
5.5.260.0070.08720.85
5.5.250.0130.04320.72
5.5.240.0030.06320.21
5.5.230.0000.08020.17
5.5.220.0100.06320.27
5.5.210.0000.05320.17
5.5.200.0100.08020.21
5.5.190.0100.07720.27
5.5.180.0030.08020.14
5.5.160.0030.08320.23
5.5.150.0030.08320.10
5.5.140.0100.07320.06
5.5.130.0030.05320.21
5.5.120.0030.06320.08
5.5.110.0130.08020.22
5.5.100.0200.04320.10
5.5.90.0070.07720.00
5.5.80.0100.08020.10
5.5.70.0130.07020.19
5.5.60.0100.08019.92
5.5.50.0070.07020.11
5.5.40.0200.06719.91
5.5.30.0070.07719.96
5.5.20.0070.07320.13
5.5.10.0100.04020.09
5.5.00.0070.07719.96
5.4.450.0030.07719.46
5.4.440.0030.05019.29
5.4.430.0070.04019.15
5.4.420.0130.06719.28
5.4.410.0070.08019.22
5.4.400.0070.05019.16
5.4.390.0100.07718.96
5.4.380.0030.07719.04
5.4.370.0130.05719.14
5.4.360.0030.07718.97
5.4.350.0130.06318.98
5.4.340.0070.07018.78
5.4.320.0170.06719.06
5.4.310.0170.06718.98
5.4.300.0130.03019.02
5.4.290.0130.07019.21
5.4.280.0070.07319.23
5.4.270.0200.06718.96
5.4.260.0030.07319.04
5.4.250.0070.07318.81
5.4.240.0030.08019.02
5.4.230.0070.07318.96
5.4.220.0000.06718.96
5.4.210.0000.08719.07
5.4.200.0170.03318.77
5.4.190.0130.06018.93
5.4.180.0000.08018.79
5.4.170.0070.04319.04
5.4.160.0030.05719.20
5.4.150.0170.06718.76
5.4.140.0100.07016.32
5.4.130.0030.07016.41
5.4.120.0130.07016.39
5.4.110.0130.05716.54
5.4.100.0100.06016.43
5.4.90.0000.06016.48
5.4.80.0000.04316.47
5.4.70.0070.06716.29
5.4.60.0000.05716.39
5.4.50.0100.07316.46
5.4.40.0030.06716.33
5.4.30.0100.06716.37
5.4.20.0070.03716.18
5.4.10.0070.05016.30
5.4.00.0030.05715.77
5.3.290.0000.05714.53
5.3.280.0070.08014.41
5.3.270.0100.07714.60
5.3.260.0030.07714.47
5.3.250.0030.04314.46
5.3.240.0070.08314.43
5.3.230.0070.04714.51
5.3.220.0100.06014.56
5.3.210.0070.07014.43
5.3.200.0030.06714.56
5.3.190.0070.03314.55
5.3.180.0130.06714.54
5.3.170.0000.08314.47
5.3.160.0000.07714.57
5.3.150.0170.06314.43
5.3.140.0030.07314.42
5.3.130.0100.04714.43
5.3.120.0070.06714.42
5.3.110.0170.07014.38
5.3.100.0070.07014.00
5.3.90.0070.06314.00
5.3.80.0100.05714.02
5.3.70.0070.03714.02
5.3.60.0030.04013.96
5.3.50.0070.07313.93
5.3.40.0100.06013.90
5.3.30.0030.04013.70
5.3.20.0070.07013.54
5.3.10.0000.05013.60
5.3.00.0030.07013.64
5.2.170.0030.06011.50
5.2.160.0030.05311.50
5.2.150.0100.04311.50
5.2.140.0100.02711.50
5.2.130.0030.06011.50
5.2.120.0100.05011.50
5.2.110.0100.02311.50
5.2.100.0100.05711.50
5.2.90.0000.06011.50
5.2.80.0030.04011.50
5.2.70.0030.05711.50
5.2.60.0100.05711.50
5.2.50.0070.05711.50
5.2.40.0030.06711.50
5.2.30.0030.06011.50
5.2.20.0070.06311.50
5.2.10.0130.03011.50
5.2.00.0030.04711.50
5.1.60.0000.03311.50
5.1.50.0070.05011.50
5.1.40.0030.05011.50
5.1.30.0030.06011.50
5.1.20.0100.05011.50
5.1.10.0030.05711.50
5.1.00.0100.05011.50
5.0.50.0100.04011.50
5.0.40.0030.04311.50
5.0.30.0070.06311.50
5.0.20.0070.03011.50
5.0.10.0030.04311.50
5.0.00.0030.06011.50
4.4.90.0000.03011.50
4.4.80.0070.02711.50
4.4.70.0000.04011.50
4.4.60.0030.03311.50
4.4.50.0000.03311.50
4.4.40.0000.05011.50
4.4.30.0000.03711.50
4.4.20.0100.02311.50
4.4.10.0030.03311.50
4.4.00.0100.06011.50
4.3.110.0070.03011.50
4.3.100.0000.02711.50
4.3.90.0030.03311.50
4.3.80.0030.03311.50
4.3.70.0030.02711.50
4.3.60.0000.02711.50
4.3.50.0070.02311.50
4.3.40.0030.04011.50
4.3.30.0000.03311.50
4.3.20.0000.03011.50
4.3.10.0030.03711.50
4.3.00.0000.02311.50

preferences:
35.92 ms | 400 KiB | 5 Q