3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date_from1 = new DateTime('1-9-2016'); $date_from=$date_from1->format('Y-m-d'); $date_to1 = new DateTime('30-9-2016'); $date_to=$date_to1->format('Y-m-d'); $diff1=$date_from1->diff($date_to1); $diff2= $diff1->format('%R %a days'); $interval = new DateInterval('P1D'); preg_match_all('!\d+!', $diff2, $matches); //use that to get only number from diff2 for($i=0; $i <= $matches[0][0]; $i++) //$matches return diff2 only number of days { $this_date= $i? $date_from1->add($interval): $date_from1; echo $this_date->format('Y-m-d') . "\r\n"; }

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.4.130.0060.00218.41
8.4.120.0050.00620.86
8.4.110.0100.00922.12
8.4.100.0100.01018.19
8.4.90.0120.01018.65
8.4.80.0100.00820.05
8.4.70.0100.01020.10
8.4.60.0110.00519.09
8.4.50.0090.01020.36
8.4.40.0120.00921.30
8.4.30.0100.01017.90
8.4.20.0130.00717.82
8.4.10.0090.00019.67
8.3.260.0120.00716.90
8.3.250.0080.01118.66
8.3.240.0160.00316.93
8.3.230.0100.01116.79
8.3.220.0150.00517.36
8.3.210.0110.00721.09
8.3.200.0030.00516.48
8.3.190.0060.00217.41
8.3.180.0110.00518.85
8.3.170.0130.00617.18
8.3.160.0090.00918.45
8.3.150.0040.01518.54
8.3.140.0060.00316.98
8.3.130.0040.00418.85
8.3.120.0110.00018.80
8.3.110.0090.00020.94
8.3.100.0040.00424.06
8.3.90.0060.01326.77
8.3.80.0050.00517.97
8.3.70.0110.01118.45
8.3.60.0090.00916.88
8.3.50.0120.00722.13
8.3.40.0080.00819.17
8.3.30.0110.00419.16
8.3.20.0040.00420.16
8.3.10.0050.00321.82
8.3.00.0050.00322.34
8.2.290.0120.00720.54
8.2.280.0110.00818.39
8.2.270.0060.01317.23
8.2.260.0080.00018.95
8.2.250.0000.00818.77
8.2.240.0090.00618.93
8.2.230.0060.00322.58
8.2.220.0060.00337.54
8.2.210.0120.00626.77
8.2.200.0060.00318.79
8.2.190.0160.00016.89
8.2.180.0160.00617.13
8.2.170.0150.00022.96
8.2.160.0060.00819.41
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0060.00326.16
8.2.120.0050.00319.96
8.2.110.0000.01121.17
8.2.100.0110.00018.16
8.2.90.0090.00018.16
8.2.80.0000.00917.97
8.2.70.0060.00318.00
8.2.60.0030.00518.00
8.2.50.0080.00017.79
8.2.40.0080.00019.85
8.2.30.0030.00618.14
8.2.20.0080.00017.96
8.2.10.0040.00418.20
8.2.00.0060.00318.19
8.1.330.0070.00722.20
8.1.320.0090.01016.68
8.1.310.0000.00718.51
8.1.300.0000.00816.74
8.1.290.0030.00630.84
8.1.280.0130.00625.92
8.1.270.0040.01120.71
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0120.00320.82
8.1.230.0040.00820.95
8.1.220.0080.00017.78
8.1.210.0090.00019.04
8.1.200.0070.00317.60
8.1.190.0040.00417.60
8.1.180.0030.00618.10
8.1.170.0000.00817.82
8.1.160.0000.00818.99
8.1.150.0040.00418.96
8.1.140.0040.00418.88
8.1.130.0000.00717.79
8.1.120.0040.00417.84
8.1.110.0070.00017.72
8.1.100.0080.00017.86
8.1.90.0000.00817.81
8.1.80.0000.00717.78
8.1.70.0000.00717.72
8.1.60.0080.00017.75
8.1.50.0030.00617.77
8.1.40.0030.00517.79
8.1.30.0040.00417.86
8.1.20.0050.00317.83
8.1.10.0080.00017.89
8.1.00.0000.00917.83
8.0.300.0040.00419.93
8.0.290.0060.00317.00
8.0.280.0040.00418.45
8.0.270.0000.00818.22
8.0.260.0050.00317.15
8.0.250.0000.00717.32
8.0.240.0070.00017.30
8.0.230.0070.00017.35
8.0.220.0050.00317.25
8.0.210.0030.00317.22
8.0.200.0060.00017.13
8.0.190.0080.00017.27
8.0.180.0080.00017.29
8.0.170.0050.00217.21
8.0.160.0000.00717.21
8.0.150.0000.00717.27
8.0.140.0050.00317.07
8.0.130.0000.00613.52
8.0.120.0060.00317.20
8.0.110.0030.00517.27
8.0.100.0050.00317.27
8.0.90.0080.00017.22
8.0.80.0100.00617.13
8.0.70.0030.00517.19
8.0.60.0070.00017.30
8.0.50.0000.00717.18
8.0.30.0080.01117.49
8.0.20.0090.01117.44
8.0.10.0030.00617.18
8.0.00.0150.00317.36
7.4.330.0050.00015.16
7.4.320.0000.00716.83
7.4.300.0000.00716.86
7.4.290.0060.00316.93
7.4.280.0000.00816.83
7.4.270.0000.00716.80
7.4.260.0000.00816.82
7.4.250.0000.00716.89
7.4.240.0040.00416.75
7.4.230.0000.00717.04
7.4.220.0030.01517.04
7.4.210.0070.01316.96
7.4.200.0000.00716.85
7.4.160.0080.00816.94
7.4.150.0120.00617.40
7.4.140.0110.01017.86
7.4.130.0100.00816.74
7.4.120.0100.00716.74
7.4.110.0150.00316.75
7.4.100.0040.01316.84
7.4.90.0110.00716.93
7.4.80.0090.00919.39
7.4.70.0130.01016.74
7.4.60.0030.01416.84
7.4.50.0030.01616.69
7.4.40.0070.01017.01
7.4.30.0120.00917.07
7.4.00.0130.00315.56
7.3.330.0000.00613.53
7.3.320.0060.00013.43
7.3.310.0000.00816.65
7.3.300.0050.00216.45
7.3.290.0060.00916.55
7.3.280.0100.00816.60
7.3.270.0070.01017.40
7.3.260.0120.00616.61
7.3.250.0110.00716.82
7.3.240.0130.00416.71
7.3.230.0060.01116.82
7.3.210.0140.00416.86
7.3.200.0060.01017.02
7.3.190.0130.00316.85
7.3.180.0100.00616.68
7.3.170.0150.00416.78
7.3.160.0070.01116.69
7.2.330.0120.00916.89
7.2.320.0110.00816.98
7.2.310.0070.01016.95
7.2.300.0110.00817.03
7.2.290.0130.00616.93
7.2.60.0050.00516.94
7.2.00.0040.00819.67
7.1.200.0070.00416.11
7.1.70.0000.00717.57
7.1.60.0150.00317.67
7.1.00.0100.07022.47
7.0.200.0030.00715.34
7.0.100.0030.06020.02
7.0.90.0170.05020.03
7.0.80.0100.05719.97
7.0.70.0130.05020.19
7.0.60.0200.04320.00
7.0.50.0170.07320.25
7.0.40.0030.06020.38
7.0.30.0100.06320.36
7.0.20.0100.08020.37
7.0.10.0130.06720.39
7.0.00.0070.06020.33
5.6.250.0030.06020.69
5.6.240.0100.05720.75
5.6.230.0100.05720.72
5.6.220.0000.07020.68
5.6.210.0170.05020.64
5.6.200.0100.05721.15
5.6.190.0170.05021.18
5.6.180.0130.05021.18
5.6.170.0230.07021.07
5.6.160.0170.05021.07
5.6.150.0130.05021.08
5.6.140.0200.05021.09
5.6.130.0100.07721.09
5.6.120.0230.07721.04
5.6.110.0300.07321.17
5.6.100.0130.06321.12
5.6.90.0170.05721.05
5.6.80.0070.05720.56
5.6.70.0200.05320.47
5.6.60.0170.05020.45
5.6.50.0170.04720.45
5.6.40.0130.05020.44
5.6.30.0170.04720.46
5.6.20.0170.04720.43
5.6.10.0170.04720.44
5.6.00.0100.06720.43

preferences:
18.66 ms | 403 KiB | 5 Q