3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime('2011-33-02'); $start->modify('first day of this month'); $end = new DateTime('2012-05-06'); $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.0090.00618.43
8.3.50.0070.00718.03
8.3.40.0150.00319.04
8.3.30.0030.01218.56
8.3.20.0090.00018.98
8.3.10.0000.00823.51
8.3.00.0080.00020.66
8.2.180.0140.00718.41
8.2.170.0100.00722.96
8.2.160.0100.00619.21
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00819.57
8.2.120.0040.00426.35
8.2.110.0040.00422.16
8.2.100.0140.00017.78
8.2.90.0000.00817.75
8.2.80.0000.00817.97
8.2.70.0030.00617.80
8.2.60.0000.00818.09
8.2.50.0060.00318.10
8.2.40.0070.00019.28
8.2.30.0050.00219.20
8.2.20.0040.00418.07
8.2.10.0040.00418.07
8.2.00.0060.00617.79
8.1.280.0170.00325.92
8.1.270.0100.01018.75
8.1.260.0030.00526.35
8.1.250.0000.00728.09
8.1.240.0090.00024.00
8.1.230.0100.00017.77
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0040.00417.13
8.1.190.0110.00417.13
8.1.180.0050.00318.10
8.1.170.0030.00618.71
8.1.160.0000.00718.75
8.1.150.0000.00718.70
8.1.140.0040.00422.15
8.1.130.0040.00420.14
8.1.120.0000.00717.47
8.1.110.0040.00417.50
8.1.100.0000.00717.48
8.1.90.0030.00317.49
8.1.80.0080.00017.48
8.1.70.0040.00417.36
8.1.60.0040.00417.52
8.1.50.0030.00517.50
8.1.40.0030.00517.41
8.1.30.0040.00417.68
8.1.20.0000.00717.61
8.1.10.0000.00817.59
8.1.00.0000.00817.53
8.0.300.0080.00018.77
8.0.290.0000.00916.88
8.0.280.0030.00318.28
8.0.270.0030.00317.09
8.0.260.0060.00020.07
8.0.250.0060.00317.04
8.0.240.0030.00317.05
8.0.230.0070.00017.07
8.0.220.0070.00016.95
8.0.210.0030.00417.07
8.0.200.0060.00016.94
8.0.190.0060.00317.10
8.0.180.0030.00317.12
8.0.170.0030.00617.05
8.0.160.0040.00417.05
8.0.150.0030.00316.86
8.0.140.0000.00717.00
8.0.130.0030.00313.50
8.0.120.0080.00016.90
8.0.110.0000.00717.01
8.0.100.0040.00416.83
8.0.90.0040.00417.10
8.0.80.0040.01416.97
8.0.70.0040.00416.94
8.0.60.0000.00717.10
8.0.50.0070.00016.93
8.0.30.0100.00817.25
8.0.20.0110.01117.40
8.0.10.0050.00317.15
8.0.00.0080.01016.76
7.4.330.0020.00215.55
7.4.320.0000.00616.45
7.4.300.0050.00216.43
7.4.290.0070.00016.65
7.4.280.0030.00516.50
7.4.270.0050.00216.57
7.4.260.0000.00716.51
7.4.250.0040.00416.39
7.4.240.0060.00316.54
7.4.230.0050.00216.34
7.4.220.0070.00016.52
7.4.210.0070.00916.64
7.4.200.0000.00816.41
7.4.160.0090.00716.64
7.4.140.0110.00617.86
7.4.130.0100.00616.63
7.4.120.0090.01016.53
7.4.110.0190.00616.56
7.4.100.0130.00616.66
7.4.90.0130.01016.63
7.4.80.0120.00619.39
7.4.70.0120.00916.32
7.4.60.0190.02616.57
7.4.50.0070.01016.34
7.4.40.0120.00616.75
7.4.10.0080.01015.60
7.4.00.0080.00815.40
7.3.330.0050.00013.24
7.3.320.0000.00513.17
7.3.310.0030.00616.16
7.3.300.0030.00316.30
7.3.290.0000.00716.36
7.3.280.0110.00416.32
7.3.260.0090.01016.46
7.3.240.0120.00716.36
7.3.230.0000.01716.52
7.3.210.0070.01016.54
7.3.200.0080.00916.54
7.3.190.0070.01016.33
7.3.180.0070.01016.49
7.3.170.0120.00616.41
7.3.160.0090.00916.39
7.3.130.0040.01315.72
7.3.120.0080.00815.46
7.3.110.0050.01315.36
7.3.100.0060.00615.40
7.3.90.0060.01015.37
7.3.80.0060.00815.24
7.3.70.0030.00915.32
7.3.60.0070.00815.34
7.3.50.0050.00615.34
7.3.40.0050.00615.34
7.3.30.0090.00315.32
7.3.20.0050.00717.22
7.3.10.0070.00716.99
7.3.00.0080.00717.18
7.2.330.0130.00716.57
7.2.320.0180.00016.30
7.2.310.0000.01716.47
7.2.300.0070.01016.29
7.2.290.0140.00716.35
7.2.260.0050.01115.64
7.2.250.0070.00915.34
7.2.240.0060.01015.49
7.2.230.0060.00715.45
7.2.220.0050.01015.20
7.2.210.0080.00515.49
7.2.200.0040.01015.37
7.2.190.0060.00715.52
7.2.180.0030.00915.48
7.2.170.0040.01015.52
7.2.160.0050.00915.82
7.2.150.0040.01017.61
7.2.140.0060.00717.56
7.2.130.0070.00817.61
7.2.120.0080.00317.61
7.2.110.0060.01216.50
7.2.100.0110.00616.57
7.2.90.0110.00916.65
7.2.80.0110.00716.66
7.2.70.0110.00716.69
7.2.60.0080.01016.63
7.2.50.0100.01016.73
7.2.40.0100.00716.72
7.2.30.0120.00516.72
7.2.20.0100.00716.62
7.2.10.0120.00916.62
7.2.00.0080.00916.82
7.1.330.0060.00916.31
7.1.320.0100.00516.11
7.1.310.0100.00416.12
7.1.300.0080.00716.24
7.1.290.0030.00916.21
7.1.280.0060.00416.14
7.1.270.0050.01016.18
7.1.260.0030.00916.11
7.1.250.0070.00716.51
7.1.240.0070.00716.49
7.1.230.0090.01015.43
7.1.220.0100.00715.45
7.1.210.0120.00615.57
7.1.200.0070.00815.48
7.1.190.0130.00315.47
7.1.180.0100.00715.51
7.1.170.0110.00415.45
7.1.160.0100.00915.53
7.1.150.0100.00615.62
7.1.140.0110.00715.52
7.1.130.0070.01115.59
7.1.120.0080.00815.63
7.1.110.0090.00915.46
7.1.100.0070.00715.64
7.1.90.0330.00515.64
7.1.80.0090.00615.47
7.1.70.0100.00915.70
7.1.60.0210.00421.54
7.1.50.0170.00921.50
7.1.40.0160.00721.50
7.1.30.0170.00521.57
7.1.20.0150.00821.55
7.1.10.0080.01015.65
7.1.00.0130.00415.40
7.0.330.0040.00816.08
7.0.320.0100.00315.98
7.0.310.0020.00916.07
7.0.300.0080.00716.14
7.0.290.0050.00916.19
7.0.280.0050.00816.29
7.0.270.0050.00516.20
7.0.260.0060.00815.99
7.0.250.0030.00916.20
7.0.240.0060.01016.31
7.0.230.0050.00916.19
7.0.220.0080.00416.16
7.0.210.0080.00316.18
7.0.200.0010.01516.27
7.0.190.0050.00716.12
7.0.180.0050.01216.19
7.0.170.0050.00816.07
7.0.160.0050.00816.06
7.0.150.0100.00516.18
7.0.140.0040.00716.22
7.0.130.0080.00316.36
7.0.120.0020.00816.01
7.0.110.0090.00616.15
7.0.100.0050.00916.11
7.0.90.0030.01016.22
7.0.80.0050.00816.18
7.0.70.0050.00616.25
7.0.60.0060.00616.04
7.0.50.0030.00916.27
7.0.40.0060.00414.14
7.0.30.0060.00414.04
7.0.20.0010.01114.18
7.0.10.0060.00614.07
7.0.00.0050.00714.20
5.6.400.0050.00815.28
5.6.390.0050.00815.04
5.6.380.0080.00614.82
5.6.370.0030.01314.96
5.6.360.0050.01315.09
5.6.350.0040.00815.23
5.6.340.0060.00715.05
5.6.330.0040.00715.03
5.6.320.0060.01015.02
5.6.310.0070.00914.97
5.6.300.0050.00915.03
5.6.290.0080.00415.10
5.6.280.0090.00315.16
5.6.270.0040.01114.87
5.6.260.0100.00515.16
5.6.250.0070.00615.08
5.6.240.0070.00415.17
5.6.230.0080.00415.10
5.6.220.0050.00814.94
5.6.210.0060.00515.11
5.6.200.0050.00814.99
5.6.190.0050.01115.03
5.6.180.0070.00615.04
5.6.170.0110.00614.92
5.6.160.0040.01215.22
5.6.150.0050.00615.05
5.6.140.0020.01215.24
5.6.130.0050.00515.05
5.6.120.0030.00915.10
5.6.110.0040.00914.95
5.6.100.0080.00314.95
5.6.90.0040.00914.87
5.6.80.0090.00514.81
5.6.70.0050.01115.07
5.6.60.0090.00514.87
5.6.50.0080.00615.10
5.6.40.0060.00814.94
5.6.30.0030.00915.02
5.6.20.0100.00214.90
5.6.10.0020.00814.98
5.6.00.0000.01515.06

preferences:
71.82 ms | 400 KiB | 5 Q