3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime('2017-01-31'); $start->modify('first day of this month'); $end = new DateTime('2017-02-07'); $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("Y-m") . PHP_EOL; }

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.3.60.0120.00918.30
8.3.50.0040.01120.10
8.3.40.0060.00919.01
8.3.30.0140.00018.82
8.3.20.0070.00021.82
8.3.10.0050.00320.57
8.3.00.0080.00021.96
8.2.180.0080.00816.88
8.2.170.0090.00622.96
8.2.160.0100.00322.06
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00418.03
8.2.120.0040.00426.35
8.2.110.0040.00420.70
8.2.100.0090.00318.03
8.2.90.0040.00419.36
8.2.80.0090.00018.29
8.2.70.0000.00918.00
8.2.60.0050.00318.05
8.2.50.0040.00418.10
8.2.40.0070.00020.59
8.2.30.0060.00319.47
8.2.20.0000.00718.06
8.2.10.0080.00018.29
8.2.00.0000.00818.02
8.1.280.0090.00625.92
8.1.270.0060.00324.04
8.1.260.0030.00626.35
8.1.250.0030.00628.09
8.1.240.0030.00620.86
8.1.230.0040.00817.89
8.1.220.0070.00317.80
8.1.210.0030.00618.77
8.1.200.0030.00617.60
8.1.190.0000.00817.47
8.1.180.0050.00318.10
8.1.170.0070.00018.70
8.1.160.0030.00618.95
8.1.150.0000.00822.15
8.1.140.0040.00419.76
8.1.130.0050.00219.17
8.1.120.0000.00717.77
8.1.110.0030.00517.60
8.1.100.0000.00717.62
8.1.90.0070.00017.80
8.1.80.0000.00717.74
8.1.70.0030.00317.74
8.1.60.0030.00617.76
8.1.50.0040.00417.78
8.1.40.0000.00817.71
8.1.30.0000.00817.86
8.1.20.0040.00417.85
8.1.10.0000.00817.79
8.1.00.0040.00417.64
8.0.300.0040.00418.77
8.0.290.0080.00016.88
8.0.280.0030.00318.59
8.0.270.0030.00317.36
8.0.260.0030.00617.50
8.0.250.0020.00517.11
8.0.240.0000.00717.25
8.0.230.0040.00417.29
8.0.220.0030.00317.18
8.0.210.0000.00617.15
8.0.200.0030.00317.21
8.0.190.0060.00317.11
8.0.180.0050.00217.13
8.0.170.0040.00417.21
8.0.160.0000.00717.17
8.0.150.0000.00817.16
8.0.140.0040.00417.05
8.0.130.0030.00313.50
8.0.120.0000.00817.16
8.0.110.0030.00417.05
8.0.100.0020.00517.05
8.0.90.0020.00517.18
8.0.80.0100.00717.09
8.0.70.0040.00417.15
8.0.60.0000.00817.07
8.0.50.0000.00817.20
8.0.30.0070.01017.34
8.0.20.0100.01117.40
8.0.10.0040.00417.13
8.0.00.0100.00717.00
7.4.330.0050.00015.55
7.4.320.0060.00016.59
7.4.300.0030.00316.82
7.4.290.0040.00216.80
7.4.280.0030.00616.70
7.4.270.0070.00016.83
7.4.260.0080.00016.71
7.4.250.0040.00416.82
7.4.240.0070.00016.85
7.4.230.0030.00316.61
7.4.220.0000.01716.91
7.4.210.0070.01016.89
7.4.200.0000.00816.51
7.4.160.0090.00616.65
7.4.150.0120.00617.40
7.4.140.0050.01317.86
7.4.130.0060.01516.73
7.4.120.0090.01116.71
7.4.110.0170.01016.74
7.4.100.0100.01316.59
7.4.90.0190.00316.76
7.4.80.0030.01419.39
7.4.70.0100.01016.69
7.4.60.0090.00916.79
7.4.50.0120.00316.67
7.4.40.0000.01716.73
7.4.30.0160.00016.91
7.4.10.0040.01014.87
7.4.00.0080.00815.23
7.3.330.0000.00613.36
7.3.320.0020.00213.37
7.3.310.0020.00516.29
7.3.300.0030.00316.48
7.3.290.0110.00616.49
7.3.280.0090.00916.48
7.3.270.0100.00717.40
7.3.260.0100.00816.75
7.3.250.0060.01216.62
7.3.240.0090.00916.60
7.3.230.0140.00316.49
7.3.210.0070.01016.48
7.3.200.0090.01216.62
7.3.190.0190.00316.47
7.3.180.0150.00616.57
7.3.170.0110.00816.66
7.3.160.0120.00916.76
7.3.130.0140.00014.84
7.3.120.0110.00715.03
7.3.110.0100.01015.08
7.3.100.0040.00814.98
7.3.90.0110.00314.71
7.3.80.0080.00615.28
7.3.70.0000.01515.05
7.3.60.0030.00714.74
7.3.50.0070.00715.12
7.3.40.0000.00815.16
7.3.30.0000.01414.73
7.3.20.0040.00716.98
7.3.10.0100.00316.68
7.3.00.0030.00716.66
7.2.330.0060.01216.88
7.2.320.0090.00916.93
7.2.310.0080.00816.80
7.2.300.0190.00616.90
7.2.290.0130.00316.95
7.2.260.0090.00915.44
7.2.250.0030.01415.31
7.2.240.0070.00715.30
7.2.230.0100.00615.08
7.2.220.0030.00715.39
7.2.210.0000.00915.18
7.2.200.0030.01415.10
7.2.190.0070.00715.16
7.2.180.0060.00614.98
7.2.170.0060.00314.97
7.2.160.0030.01315.23
7.2.150.0030.01517.11
7.2.140.0000.01217.26
7.2.130.0000.00916.87
7.2.120.0040.01117.16
7.2.110.0050.00716.79
7.2.100.0030.00717.12
7.2.90.0090.00616.96
7.2.80.0040.01116.80
7.2.70.0060.00617.14
7.2.60.0070.00717.18
7.2.50.0000.01317.12
7.2.40.0040.01117.18
7.2.30.0070.00316.98
7.2.20.0030.01017.13
7.2.10.0030.00917.14
7.2.00.0070.01016.90
7.1.330.0070.00715.96
7.1.320.0070.00715.94
7.1.310.0030.00816.00
7.1.300.0080.00315.66
7.1.290.0070.00716.00
7.1.280.0040.00715.94
7.1.270.0030.01016.02
7.1.260.0140.00015.68
7.1.250.0040.00815.98
7.1.240.0040.01115.64
7.1.230.0040.00815.99
7.1.220.0070.01016.09
7.1.210.0050.00815.99
7.1.200.0030.00715.96
7.1.190.0000.01415.76
7.1.180.0000.01515.76
7.1.170.0090.00015.96
7.1.160.0030.01016.08
7.1.150.0000.01415.77
7.1.140.0040.00815.74
7.1.130.0030.00615.95
7.1.120.0060.01315.62
7.1.110.0040.01115.86
7.1.100.0060.00315.59
7.1.90.0100.00315.82
7.1.80.0070.00715.94
7.1.70.0070.00416.61
7.1.60.0030.00616.60
7.1.50.0000.00916.04
7.1.40.0040.00816.03
7.1.30.0110.00416.11
7.1.20.0060.01215.70
7.1.10.0030.03419.12
7.1.00.0030.03319.03
7.0.330.0030.00715.27
7.0.320.0060.01015.48
7.0.310.0030.00715.43
7.0.300.0030.00615.31
7.0.290.0060.01215.57
7.0.280.0100.00315.41
7.0.270.0040.00415.35
7.0.260.0060.01015.65
7.0.250.0060.01215.55
7.0.240.0030.00715.69
7.0.230.0040.00715.77
7.0.220.0140.00015.52
7.0.210.0070.00715.41
7.0.200.0040.00616.17
7.0.190.0040.01115.61
7.0.180.0090.00315.48
7.0.170.0140.00315.32
7.0.160.0030.01615.66
7.0.150.0030.03718.75
7.0.140.0050.03218.66
7.0.130.0150.02818.87
7.0.120.0090.02718.66
7.0.110.0050.03518.64
7.0.100.0100.03018.73
7.0.90.0070.03318.63
7.0.80.0020.03518.63
7.0.70.0110.02618.71
7.0.60.0090.02718.54
7.0.50.0070.03218.68
7.0.40.0050.03417.66
7.0.30.0050.03217.73
7.0.20.0080.03017.79
7.0.10.0050.04017.78
7.0.00.0070.03517.63
5.6.400.0130.00314.44
5.6.390.0040.00814.47
5.6.380.0040.00414.54
5.6.370.0090.00614.54
5.6.360.0080.00414.37
5.6.350.0000.00914.57
5.6.340.0060.01014.44
5.6.330.0030.01314.50
5.6.320.0040.00814.65
5.6.310.0070.00714.15
5.6.300.0000.01614.72
5.6.290.0000.01313.99
5.6.280.0030.00614.66
5.6.270.0130.00014.58
5.6.260.0050.00314.44
5.6.250.0000.00914.44
5.6.240.0050.00514.19
5.6.230.0060.00614.65
5.6.220.0040.00414.49
5.6.210.0090.00014.32
5.6.200.0070.01014.68
5.6.190.0110.00414.43
5.6.180.0100.00614.40
5.6.170.0070.01014.37
5.6.160.0100.00414.27
5.6.150.0070.00714.20
5.6.140.0110.00314.35
5.6.130.0000.01414.15
5.6.120.0040.01114.49
5.6.110.0060.01214.52
5.6.100.0070.00714.36
5.6.90.0090.00314.24
5.6.80.0000.00814.38
5.6.70.0030.00714.13
5.6.60.0060.00314.50
5.6.50.0030.01414.64
5.6.40.0070.01014.20
5.6.30.0070.01014.39
5.6.20.0060.00314.33
5.6.10.0090.00614.59
5.6.00.0100.00014.17

preferences:
64.89 ms | 401 KiB | 5 Q