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($dt . " -13 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.4.00.0080.00815.43
7.3.120.0100.00915.16
7.3.110.0170.00015.33
7.3.100.0060.00615.33
7.3.90.0070.00715.12
7.3.80.0080.00315.22
7.3.70.0070.00415.06
7.3.60.0040.01114.98
7.3.50.0030.01515.13
7.3.40.0130.00714.92
7.3.30.0150.00014.85
7.3.20.0070.00716.99
7.3.10.0050.00916.87
7.3.00.0060.00716.90
7.2.250.0070.01115.30
7.2.240.0150.00315.54
7.2.230.0110.00715.25
7.2.220.0080.00915.42
7.2.210.0100.01015.34
7.2.200.0040.01215.38
7.2.190.0040.01115.25
7.2.180.0000.01315.26
7.2.170.0030.01015.35
7.2.130.0050.00917.23
7.2.120.0070.00717.08
7.2.110.0060.00817.08
7.2.100.0030.01017.26
7.2.90.0060.01017.25
7.2.80.0070.00817.19
7.2.70.0060.00717.16
7.2.60.0050.00917.07
7.2.50.0090.00617.22
7.2.40.0090.00417.15
7.2.30.0070.00917.15
7.2.20.0020.01317.08
7.2.10.0050.00917.22
7.2.00.0080.00717.82
7.1.330.0040.01115.76
7.1.320.0070.00716.19
7.1.310.0110.00315.95
7.1.300.0040.01216.00
7.1.290.0100.01016.11
7.1.280.0000.01515.84
7.1.270.0030.01015.98
7.1.260.0130.00316.11
7.1.250.0060.00616.00
7.1.200.0110.00316.00
7.1.100.0180.00618.54
7.1.70.0060.00317.23
7.1.60.0070.01719.70
7.1.50.0060.01617.06
7.1.00.0030.07722.45
7.0.200.0040.00416.87
7.0.140.0030.07322.10
7.0.80.0570.06020.13
7.0.70.0570.08019.89
7.0.60.0570.08720.02
7.0.50.0670.07020.20
7.0.40.0070.07720.03
7.0.30.0070.08720.04
7.0.20.0070.04020.11
7.0.10.0170.07019.97
7.0.00.0170.07720.09
5.6.280.0030.07321.04
5.6.230.0100.08320.56
5.6.220.0070.08020.57
5.6.210.0100.07020.65
5.6.200.0070.08321.16
5.6.190.0030.06321.03
5.6.180.0030.06021.17
5.6.170.0170.08321.08
5.6.160.0070.09021.10
5.6.150.0100.07321.05
5.6.140.0000.06720.95
5.6.130.0130.04320.99
5.6.120.0070.06321.13
5.6.110.0170.06321.16
5.6.100.0170.07020.91
5.6.90.0130.07720.93
5.6.80.0130.04720.40
5.6.70.0130.04720.48
5.6.60.0030.05020.39
5.6.50.0100.03320.47
5.6.40.0100.05720.30
5.6.30.0000.08320.46
5.6.20.0070.06320.43
5.6.10.0100.05720.37
5.6.00.0030.05320.29
5.5.370.0070.07720.34
5.5.360.0130.07320.43
5.5.350.0130.08020.36
5.5.340.0170.08020.92
5.5.330.0130.07720.92
5.5.320.0170.07320.89
5.5.310.0070.05320.82
5.5.300.0230.07320.77
5.5.290.0030.04720.73
5.5.280.0100.08020.88
5.5.270.0100.09020.61
5.5.260.0170.07020.90
5.5.250.0200.06720.67
5.5.240.0070.06320.02
5.5.230.0070.08020.26
5.5.220.0030.07720.11
5.5.210.0100.07320.25
5.5.200.0070.04720.13
5.5.190.0130.06720.18
5.5.180.0100.06020.21
5.5.160.0130.06720.14
5.5.150.0070.07720.18
5.5.140.0100.07720.08
5.5.130.0070.07720.20
5.5.120.0030.04320.23
5.5.110.0100.07020.17
5.5.100.0030.04720.07
5.5.90.0100.06320.15
5.5.80.0030.05720.11
5.5.70.0100.07320.14
5.5.60.0000.06720.04
5.5.50.0100.07020.05
5.5.40.0030.08320.14
5.5.30.0130.07319.92
5.5.20.0170.07320.13
5.5.10.0030.05319.97
5.5.00.0230.06319.96
5.4.450.0100.07319.41
5.4.440.0030.08319.22
5.4.430.0030.04719.36
5.4.420.0170.07019.25
5.4.410.0000.05319.21
5.4.400.0100.06719.25
5.4.390.0070.04319.06
5.4.380.0100.03319.11
5.4.370.0030.04719.02
5.4.360.0030.04018.78
5.4.350.0100.05319.01
5.4.340.0100.06318.78
5.4.320.0100.07319.23
5.4.310.0170.08018.78
5.4.300.0030.06719.04
5.4.290.0070.04319.08
5.4.280.0070.03718.98
5.4.270.0070.05319.01
5.4.260.0070.07719.07
5.4.250.0070.07318.89
5.4.240.0070.07719.07
5.4.230.0130.06318.76
5.4.220.0100.07319.22
5.4.210.0070.08318.91
5.4.200.0200.06018.93
5.4.190.0070.07718.97
5.4.180.0130.06019.05
5.4.170.0130.07018.88
5.4.160.0130.05018.96
5.4.150.0100.07719.00
5.4.140.0030.07316.40
5.4.130.0100.07016.38
5.4.120.0070.07716.14
5.4.110.0070.07716.21
5.4.100.0100.07016.23
5.4.90.0130.06016.32
5.4.80.0070.05016.41
5.4.70.0070.07316.28
5.4.60.0070.05316.19
5.4.50.0070.07316.16
5.4.40.0070.07016.41
5.4.30.0030.05316.34
5.4.20.0030.07716.21
5.4.10.0070.07316.18
5.4.00.0030.07715.67
5.3.290.0100.07314.47
5.3.280.0070.07714.52
5.3.270.0070.07314.60
5.3.260.0030.05014.51
5.3.250.0130.07314.58
5.3.240.0070.05314.53
5.3.230.0030.07014.59
5.3.220.0030.05714.54
5.3.210.0070.07714.45
5.3.200.0070.08014.36
5.3.190.0070.08014.42
5.3.180.0030.07714.53
5.3.170.0030.07714.48
5.3.160.0070.07714.46
5.3.150.0130.07014.54
5.3.140.0130.07314.36
5.3.130.0030.08314.52
5.3.120.0170.06714.35
5.3.110.0130.06714.52
5.3.100.0070.05013.98
5.3.90.0000.06013.96
5.3.80.0030.04313.92
5.3.70.0100.06713.76
5.3.60.0070.07713.91
5.3.50.0070.07013.91
5.3.40.0100.06713.84
5.3.30.0100.05313.85
5.3.20.0030.06713.66
5.3.10.0130.06713.55
5.3.00.0030.08013.37
5.2.170.0070.06011.00
5.2.160.0030.05710.95
5.2.150.0000.05311.18
5.2.140.0100.03311.09
5.2.130.0030.06310.91
5.2.120.0030.06010.98
5.2.110.0030.04011.03
5.2.100.0070.06310.95
5.2.90.0100.06310.96
5.2.80.0000.06711.07
5.2.70.0230.04310.94
5.2.60.0070.06011.09
5.2.50.0170.05310.81
5.2.40.0070.05710.96
5.2.30.0130.05310.77
5.2.20.0030.06310.92
5.2.10.0030.06310.72
5.2.00.0000.07010.73
5.1.60.0030.0539.82
5.1.50.0030.06010.00
5.1.40.0070.04710.00
5.1.30.0000.06010.26
5.1.20.0200.03710.41
5.1.10.0070.04310.07
5.1.00.0000.05710.06
5.0.50.0100.0338.39
5.0.40.0070.0438.39
5.0.30.0030.0578.07
5.0.20.0070.0438.04
5.0.10.0070.0408.25
5.0.00.0030.0608.23
4.4.90.0070.0277.30
4.4.80.0000.0407.30
4.4.70.0070.0337.30
4.4.60.0030.0307.30
4.4.50.0030.0337.30
4.4.40.0070.0507.30
4.4.30.0000.0407.30
4.4.20.0030.0377.30
4.4.10.0000.0377.30
4.4.00.0070.0507.30
4.3.110.0030.0377.30
4.3.100.0030.0337.30
4.3.90.0000.0337.30
4.3.80.0000.0537.30
4.3.70.0000.0277.30
4.3.60.0130.0137.30
4.3.50.0000.0377.30
4.3.40.0030.0377.30
4.3.30.0000.0377.30
4.3.20.0000.0407.30
4.3.10.0070.0307.30
4.3.00.0030.0337.30

preferences:
36.53 ms | 401 KiB | 5 Q