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.4.00.0000.01214.98
7.3.120.0100.00515.14
7.3.110.0130.00515.11
7.3.100.0030.00914.92
7.3.90.0100.00315.15
7.3.80.0080.00615.12
7.3.70.0080.00315.01
7.3.60.0050.00915.20
7.3.50.0040.01115.17
7.3.40.0040.01114.98
7.3.30.0070.00715.05
7.3.20.0050.00916.86
7.3.10.0050.00716.79
7.3.00.0050.00916.87
7.2.250.0030.01615.36
7.2.240.0060.01014.97
7.2.230.0030.01115.22
7.2.220.0040.00815.19
7.2.210.0070.00515.27
7.2.200.0070.00715.28
7.2.190.0090.00715.19
7.2.180.0050.00815.02
7.2.170.0030.00915.34
7.2.160.0060.00615.36
7.2.150.0080.00317.16
7.2.140.0060.00916.89
7.2.130.0050.00817.20
7.2.120.0100.00317.10
7.2.110.0070.00717.12
7.2.100.0060.00517.23
7.2.90.0060.01017.22
7.2.80.0080.00717.12
7.2.70.0090.00817.08
7.2.60.0080.00617.18
7.2.50.0050.01017.04
7.2.40.0060.00617.05
7.2.30.0060.00717.07
7.2.20.0080.00517.08
7.2.10.0080.00717.08
7.2.00.0050.00917.18
7.1.330.0020.01516.04
7.1.320.0000.01415.97
7.1.310.0060.01016.02
7.1.300.0030.00815.91
7.1.290.0070.00816.05
7.1.280.0060.00715.99
7.1.270.0100.00616.12
7.1.260.0030.00615.96
7.1.250.0040.01016.00
7.1.100.0070.00718.49
7.1.70.0030.01317.52
7.1.60.0180.00719.70
7.1.50.0170.00716.94
7.1.00.0030.07722.46
7.0.200.0030.00316.92
7.0.140.0000.07022.00
7.0.100.0000.04719.99
7.0.90.0070.04019.89
7.0.80.0070.03319.92
7.0.70.0000.04319.97
7.0.60.0100.06719.87
7.0.50.0070.04020.32
7.0.40.0100.03319.95
7.0.30.0030.04720.04
7.0.20.0030.04320.08
7.0.10.0070.04020.09
7.0.00.0130.04720.04
5.6.280.0030.07320.82
5.6.250.0030.04320.66
5.6.240.0070.03320.69
5.6.230.0030.04320.57
5.6.220.0030.03720.64
5.6.210.0030.04020.77
5.6.200.0030.04720.99
5.6.190.0000.05021.11
5.6.180.0030.04021.06
5.6.170.0070.03321.09
5.6.160.0070.06021.17
5.6.150.0070.04021.09
5.6.140.0100.07321.05
5.6.130.0030.04721.03
5.6.120.0100.07321.16
5.6.110.0030.09020.99
5.6.100.0170.05721.07
5.6.90.0130.07020.96
5.6.80.0130.08020.46
5.6.70.0130.06320.33
5.6.60.0070.04020.38
5.6.50.0130.07720.50
5.6.40.0170.05320.43
5.6.30.0170.07720.44
5.6.20.0000.05320.42
5.6.10.0130.06720.40
5.6.00.0130.04720.44
5.5.380.0130.05020.56
5.5.370.0030.04720.38
5.5.360.0000.04320.47
5.5.350.0070.04020.42
5.5.340.0000.04320.89
5.5.330.0000.03720.73
5.5.320.0030.04020.83
5.5.310.0070.04020.81
5.5.300.0070.05720.79
5.5.290.0070.08020.88
5.5.280.0130.04020.88
5.5.270.0130.07020.78
5.5.260.0130.06020.76
5.5.250.0000.07720.73
5.5.240.0100.07720.13
5.5.230.0030.08320.10
5.5.220.0100.05720.29
5.5.210.0130.07320.09
5.5.200.0100.07720.18
5.5.190.0130.07020.23
5.5.180.0130.07320.08
5.5.160.0070.08320.23
5.5.150.0030.04720.08
5.5.140.0070.08320.12
5.5.130.0100.07720.21
5.5.120.0100.07720.17
5.5.110.0100.05320.09
5.5.100.0070.08020.05
5.5.90.0100.08020.12
5.5.80.0100.07720.06
5.5.70.0070.06020.03
5.5.60.0130.07020.06
5.5.50.0030.04020.14
5.5.40.0200.05720.08
5.5.30.0000.07720.05
5.5.20.0100.07020.13
5.5.10.0100.07320.01
5.5.00.0100.04719.96
5.4.450.0070.08719.37
5.4.440.0100.04319.22
5.4.430.0170.06719.28
5.4.420.0170.06719.44
5.4.410.0000.05719.23
5.4.400.0130.06019.10
5.4.390.0030.07719.09
5.4.380.0100.08019.25
5.4.370.0070.04719.00
5.4.360.0070.04719.01
5.4.350.0070.08319.04
5.4.340.0170.07019.12
5.4.320.0100.05719.12
5.4.310.0070.07319.06
5.4.300.0070.06319.23
5.4.290.0100.07319.14
5.4.280.0100.04718.96
5.4.270.0130.07319.04
5.4.260.0100.04718.94
5.4.250.0100.07318.95
5.4.240.0070.07719.14
5.4.230.0030.05719.05
5.4.220.0100.05718.77
5.4.210.0070.05718.97
5.4.200.0200.06719.22
5.4.190.0170.06319.13
5.4.180.0070.05719.05
5.4.170.0030.07319.01
5.4.160.0070.06719.05
5.4.150.0070.07018.79
5.4.140.0100.05716.33
5.4.130.0030.04316.36
5.4.120.0100.05316.34
5.4.110.0030.07316.49
5.4.100.0130.04016.37
5.4.90.0170.06016.46
5.4.80.0100.05716.26
5.4.70.0070.06316.46
5.4.60.0030.06016.41
5.4.50.0130.05016.34
5.4.40.0130.06716.46
5.4.30.0000.05316.20
5.4.20.0130.07016.36
5.4.10.0100.04316.30
5.4.00.0030.04315.75
5.3.290.0130.07014.52
5.3.280.0100.05014.57
5.3.270.0030.06314.60
5.3.260.0070.07714.58
5.3.250.0070.05314.61
5.3.240.0130.05714.60
5.3.230.0170.06714.46
5.3.220.0100.08014.43
5.3.210.0100.07014.52
5.3.200.0100.06714.56
5.3.190.0100.04714.38
5.3.180.0030.06714.56
5.3.170.0030.08014.54
5.3.160.0100.07314.52
5.3.150.0070.07714.54
5.3.140.0070.06714.53
5.3.130.0000.07014.37
5.3.120.0100.05714.41
5.3.110.0070.07714.51
5.3.100.0100.04014.03
5.3.90.0030.07013.88
5.3.80.0130.03314.00
5.3.70.0070.07313.98
5.3.60.0000.07013.77
5.3.50.0070.06713.95
5.3.40.0070.07013.94
5.3.30.0030.05013.77
5.3.20.0030.07013.45
5.3.10.0000.07713.64
5.3.00.0100.07013.58
5.2.170.0030.05311.41
5.2.160.0030.06711.41
5.2.150.0070.03711.41
5.2.140.0000.05711.41
5.2.130.0130.05711.41
5.2.120.0030.06711.41
5.2.110.0130.05311.41
5.2.100.0030.06011.41
5.2.90.0030.03711.41
5.2.80.0070.06711.41
5.2.70.0030.05311.41
5.2.60.0100.05311.41
5.2.50.0070.05711.41
5.2.40.0000.06711.41
5.2.30.0070.06011.41
5.2.20.0070.06011.41
5.2.10.0030.05011.41
5.2.00.0070.05311.41
5.1.60.0100.04011.41
5.1.50.0070.04011.41
5.1.40.0030.06711.41
5.1.30.0100.05011.41
5.1.20.0070.04711.41
5.1.10.0070.05011.41
5.1.00.0100.05011.41
5.0.50.0100.03011.41
5.0.40.0070.04011.41
5.0.30.0030.06011.41
5.0.20.0030.04311.41
5.0.10.0070.02011.41
5.0.00.0030.03711.41
4.4.90.0030.02011.41
4.4.80.0000.03711.41
4.4.70.0030.03711.41
4.4.60.0070.03011.41
4.4.50.0070.02711.41
4.4.40.0030.03311.41
4.4.30.0000.03711.41
4.4.20.0000.02011.41
4.4.10.0030.03711.41
4.4.00.0000.05711.41
4.3.110.0070.01711.41
4.3.100.0000.01711.41
4.3.90.0000.03711.41
4.3.80.0130.04011.41
4.3.70.0000.02011.41
4.3.60.0070.03011.41
4.3.50.0000.03311.41
4.3.40.0000.02711.41
4.3.30.0000.02011.41
4.3.20.0030.03011.41
4.3.10.0000.03311.41
4.3.00.0030.02711.41

preferences:
34.83 ms | 401 KiB | 5 Q