3v4l.org

run code in 300+ PHP versions simultaneously
<?php //create calendar //make callDate week monday calStart $calStart = new DateTime(date_format(date_create("2016-12-20"),"Y-m-d")); $daysFromMon = date_format($calStart, "N") - 1; $calStart = date_add($calStart, date_interval_create_from_date_string("-$daysFromMon days")); //make calEnd 28 days after calStart $calEnd = new DateTime(date_format(date_add($calStart, date_interval_create_from_date_string("+28 days")),"Y-m-d")); $interval = new DateInterval('P1D'); $period = new DatePeriod($calStart, $interval, $calEnd); foreach($period as $curDay){ echo date_format($curDay,"Y-m-d")."<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)
8.5.30.0110.00619.93
8.5.20.0100.00622.08
8.5.10.0120.00820.04
8.5.00.0100.01120.17
8.4.180.0130.01019.75
8.4.170.0110.01223.85
8.4.160.0130.01223.84
8.4.150.0080.00516.91
8.4.140.0110.01017.90
8.4.130.0100.00517.62
8.4.120.0120.00822.26
8.4.110.0090.01218.78
8.4.100.0080.01317.85
8.4.90.0140.00718.01
8.4.80.0100.01019.70
8.4.70.0070.00119.75
8.4.60.0110.01020.49
8.4.50.0120.00520.37
8.4.40.0180.00419.72
8.4.30.0160.00317.67
8.4.20.0130.00620.57
8.4.10.0080.00017.98
8.3.300.0140.00718.68
8.3.290.0120.00820.77
8.3.280.0120.00820.39
8.3.270.0150.00616.76
8.3.260.0130.00716.84
8.3.250.0120.00718.90
8.3.240.0080.01116.77
8.3.230.0050.00616.56
8.3.220.0140.00516.58
8.3.210.0060.00118.46
8.3.200.0040.00516.64
8.3.190.0090.00416.95
8.3.180.0040.00716.96
8.3.170.0130.00317.25
8.3.160.0110.00718.67
8.3.150.0030.00616.69
8.3.140.0080.00819.19
8.3.130.0000.00818.70
8.3.120.0060.00318.85
8.3.110.0040.00820.94
8.3.100.0090.00024.06
8.3.90.0080.00026.77
8.3.80.0080.00017.97
8.3.70.0120.00918.43
8.3.60.0130.00718.55
8.3.50.0110.00621.14
8.3.40.0150.00319.08
8.3.30.0110.00418.92
8.3.20.0040.00419.10
8.3.10.0040.00421.90
8.3.00.0040.00419.79
8.2.300.0100.01118.20
8.2.290.0130.00718.96
8.2.280.0130.00818.38
8.2.270.0070.00717.43
8.2.260.0080.00016.69
8.2.250.0070.00318.80
8.2.240.0060.00917.31
8.2.230.0090.00022.58
8.2.220.0090.00637.54
8.2.210.0130.00726.77
8.2.200.0060.00316.75
8.2.190.0120.00616.75
8.2.180.0110.00718.30
8.2.170.0080.00822.96
8.2.160.0000.01320.43
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0000.00721.00
8.2.120.0080.00026.35
8.2.110.0040.00420.50
8.2.100.0070.00418.03
8.2.90.0000.00817.88
8.2.80.0000.00819.02
8.2.70.0060.00317.75
8.2.60.0080.00018.00
8.2.50.0000.00817.93
8.2.40.0030.00618.29
8.2.30.0040.00418.01
8.2.20.0080.00018.21
8.2.10.0040.00418.09
8.2.00.0000.00717.88
8.1.340.0100.00917.77
8.1.330.0120.00816.91
8.1.320.0140.00416.36
8.1.310.0110.00618.66
8.1.300.0050.00518.22
8.1.290.0030.00630.84
8.1.280.0100.01025.92
8.1.270.0070.00024.10
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0030.00723.95
8.1.230.0080.00322.15
8.1.220.0000.00818.79
8.1.210.0050.00518.77
8.1.200.0000.00817.60
8.1.190.0090.00017.47
8.1.180.0030.00618.10
8.1.170.0070.00017.65
8.1.160.0080.00019.02
8.1.150.0040.00420.31
8.1.140.0040.00419.62
8.1.130.0000.00819.15
8.1.120.0000.00717.71
8.1.110.0000.00717.60
8.1.100.0050.00217.66
8.1.90.0030.00317.73
8.1.80.0000.00817.75
8.1.70.0070.00017.72
8.1.60.0030.00617.82
8.1.50.0050.00217.64
8.1.40.0060.00317.71
8.1.30.0080.00017.79
8.1.20.0030.00617.84
8.1.10.0000.00717.73
8.1.00.0000.00717.79
8.0.300.0000.00718.77
8.0.290.0040.00416.88
8.0.280.0040.00418.27
8.0.270.0000.01018.35
8.0.260.0000.00717.40
8.0.250.0000.00817.17
8.0.240.0030.00317.13
8.0.230.0060.00317.25
8.0.220.0000.00717.09
8.0.210.0030.00517.22
8.0.200.0000.00717.35
8.0.190.0070.00017.28
8.0.180.0020.00517.22
8.0.170.0050.00317.18
8.0.160.0070.00017.24
8.0.150.0050.00317.13
8.0.140.0000.00717.11
8.0.130.0000.00613.54
8.0.120.0030.00617.20
8.0.110.0060.00317.09
8.0.100.0040.00417.11
8.0.90.0050.00317.27
8.0.80.0060.01317.18
8.0.70.0000.00817.17
8.0.60.0000.00717.20
8.0.50.0040.00417.34
8.0.30.0110.00917.37
8.0.20.0130.01017.44
8.0.10.0040.00417.14
8.0.00.0150.00416.80
7.4.330.0000.00515.55
7.4.320.0030.00316.79
7.4.300.0030.00316.68
7.4.290.0050.00316.69
7.4.280.0050.00316.80
7.4.270.0000.00816.73
7.4.260.0000.00716.83
7.4.250.0080.00016.78
7.4.240.0080.00016.81
7.4.230.0040.00416.82
7.4.220.0160.00316.67
7.4.210.0070.00716.84
7.4.200.0030.00516.72
7.4.150.0070.01017.40
7.4.140.0110.00717.86
7.4.130.0080.00916.69
7.4.120.0090.00916.79
7.4.110.0090.00616.70
7.4.100.0060.01616.83
7.4.90.0070.01016.77
7.4.80.0110.00619.39
7.4.70.0060.01116.76
7.4.60.0070.01016.89
7.4.50.0030.01316.86
7.4.40.0070.01416.66
7.4.30.0040.01816.85
7.4.00.0080.01015.12
7.3.330.0000.00513.38
7.3.320.0060.00013.27
7.3.310.0040.00416.39
7.3.300.0070.00016.51
7.3.290.0050.00916.52
7.3.280.0090.00816.57
7.3.270.0130.00317.40
7.3.260.0110.01016.79
7.3.250.0080.01016.65
7.3.240.0060.01216.79
7.3.230.0080.00816.66
7.3.210.0070.01016.78
7.3.200.0030.01316.66
7.3.190.0040.01216.72
7.3.180.0060.01016.70
7.3.170.0100.00616.83
7.3.160.0030.01416.64
7.3.120.0080.00814.98
7.3.110.0030.00915.00
7.3.100.0090.00314.99
7.3.90.0030.01314.90
7.3.80.0070.01115.18
7.3.70.0070.00715.09
7.3.60.0070.00715.09
7.3.50.0040.00815.12
7.3.40.0040.00815.15
7.3.30.0070.00315.07
7.3.20.0060.01016.84
7.3.10.0040.01116.52
7.3.00.0070.00716.82
7.2.330.0060.01117.05
7.2.320.0090.00916.69
7.2.310.0060.01216.71
7.2.300.0030.01316.86
7.2.290.0100.01016.89
7.2.250.0070.01015.25
7.2.240.0120.00615.20
7.2.230.0000.01815.02
7.2.220.0000.01515.20
7.2.210.0070.01015.27
7.2.200.0000.01215.42
7.2.190.0040.01115.29
7.2.180.0070.01015.08
7.2.170.0100.00315.28
7.2.60.0400.00017.08
7.2.50.0030.01217.13
7.1.330.0000.01516.15
7.1.320.0000.01415.82
7.1.310.0030.01315.92
7.1.300.0060.00615.89
7.1.290.0040.00416.17
7.1.280.0030.01016.20
7.1.270.0090.00315.92
7.1.260.0040.01115.80
7.1.200.0060.00615.82
7.1.70.0070.00317.18
7.1.60.0060.01017.14
7.1.00.0180.05022.52
7.0.200.0000.01017.06
7.0.140.0100.05722.08
7.0.130.0030.06021.95
7.0.120.0170.04722.07
7.0.110.0070.05722.15
7.0.100.0100.05322.25
7.0.90.0030.06022.23
7.0.80.0100.05322.13
7.0.70.0030.06022.19
7.0.60.0130.05021.89
7.0.50.0130.05322.02
7.0.40.0030.06322.16
7.0.30.0030.06022.09
7.0.20.0100.06021.98
7.0.10.0030.06322.07
7.0.00.0130.05021.96
5.6.290.0100.05320.86
5.6.280.0100.05321.07
5.6.270.0100.05320.78
5.6.260.0100.05021.10
5.6.250.0070.05721.04
5.6.240.0100.05320.81
5.6.230.0000.06721.05
5.6.220.0100.05320.95
5.6.210.0170.05720.82
5.6.200.0070.07021.05
5.6.190.0070.06321.05
5.6.180.0130.05020.99
5.6.170.0130.05020.84
5.6.160.0070.05720.88
5.6.150.0100.06020.86
5.6.140.0200.05721.05
5.6.130.0170.04720.99
5.6.120.0170.05321.04
5.6.110.0070.07320.86
5.6.100.0170.06720.84
5.6.90.0070.06021.02
5.6.80.0270.06720.43
5.6.70.0130.05720.42
5.6.60.0100.05320.41
5.6.50.0100.05020.26
5.6.40.0070.05720.26
5.6.30.0030.06020.41
5.6.20.0130.05020.43
5.6.10.0130.05020.39
5.6.00.0100.05320.39

preferences:
115.64 ms | 1626 KiB | 5 Q