3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = (new DateTime('1 year ago'))->modify('first day of this month'); $end = (new DateTime())->modify('first day of this month'); $interval = new DateInterval('P1M'); $period = new DatePeriod($start, $interval, $end); $months = array(); foreach ($period as $dt) { $months[$dt->format('Y-m-d')] = $dt->format('Y-m'); } $reverse_months = array_reverse($months); print_r($reverse_months);

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.40.0070.00718.85
8.3.30.0070.00719.21
8.3.20.0070.00020.34
8.3.10.0000.00821.96
8.3.00.0000.00822.47
8.2.170.0040.01119.34
8.2.160.0060.01222.96
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0050.00226.16
8.2.120.0080.00017.88
8.2.110.0060.00319.04
8.2.100.0080.00318.03
8.2.90.0080.00019.53
8.2.80.0030.00618.00
8.2.70.0000.00917.88
8.2.60.0000.00818.15
8.2.50.0030.00618.07
8.2.40.0050.00218.47
8.2.30.0000.00718.13
8.2.20.0000.00818.02
8.2.10.0080.00018.01
8.2.00.0040.00419.63
8.1.270.0030.00722.16
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0110.00021.89
8.1.230.0070.00321.00
8.1.220.0060.00317.89
8.1.210.0040.00418.89
8.1.200.0040.00417.50
8.1.190.0000.00817.60
8.1.180.0050.00318.10
8.1.170.0000.00918.96
8.1.160.0050.00319.08
8.1.150.0080.00018.91
8.1.140.0040.00417.71
8.1.130.0040.00418.03
8.1.120.0000.00817.66
8.1.110.0040.00417.67
8.1.100.0050.00217.64
8.1.90.0000.00817.67
8.1.80.0060.00317.61
8.1.70.0030.00517.73
8.1.60.0030.00617.71
8.1.50.0040.00417.69
8.1.40.0040.00417.78
8.1.30.0080.00017.71
8.1.20.0000.00817.89
8.1.10.0050.00317.79
8.1.00.0000.00817.70
8.0.300.0000.00720.01
8.0.290.0040.00416.88
8.0.280.0040.00418.59
8.0.270.0070.00017.46
8.0.260.0030.00316.96
8.0.250.0070.00317.24
8.0.240.0060.00417.21
8.0.230.0030.00317.25
8.0.220.0040.00417.09
8.0.210.0040.00417.18
8.0.200.0000.00617.25
8.0.190.0000.00717.19
8.0.180.0070.00417.12
8.0.170.0080.00017.12
8.0.160.0000.00717.18
8.0.150.0040.00417.13
8.0.140.0000.00817.16
8.0.130.0060.00013.54
8.0.120.0000.00917.02
8.0.110.0000.00817.19
8.0.100.0050.00317.20
8.0.90.0040.00317.23
8.0.80.0070.01017.06
8.0.70.0000.00717.05
8.0.60.0040.00417.11
8.0.50.0040.00417.04
8.0.30.0110.01017.38
8.0.20.0100.00817.36
8.0.10.0140.01117.26
8.0.00.0110.00916.99
7.4.330.0000.00515.17
7.4.320.0000.00716.80
7.4.300.0030.00316.70
7.4.290.0000.00716.71
7.4.280.0030.00316.61
7.4.270.0060.00316.63
7.4.260.0030.00316.71
7.4.250.0050.00316.65
7.4.240.0000.00716.69
7.4.230.0070.00016.63
7.4.220.0060.01116.84
7.4.210.0040.01016.75
7.4.200.0080.00016.64
7.4.190.0030.00316.94
7.4.160.0090.01016.83
7.4.150.0110.00817.12
7.4.140.0100.01317.48
7.4.130.0110.01016.70
7.4.120.0110.01116.60
7.4.110.0110.00816.70
7.4.100.0140.00916.79
7.4.90.0090.01216.67
7.4.80.0120.00917.54
7.4.70.0110.00816.78
7.4.60.0080.01516.71
7.4.50.0130.00716.78
7.4.40.0090.01216.61
7.4.30.0160.00716.61
7.4.20.0140.01016.57
7.4.10.0140.00816.72
7.4.00.0080.01216.14
7.3.330.0020.00213.39
7.3.320.0000.00613.43
7.3.310.0050.00316.48
7.3.300.0030.00316.52
7.3.290.0070.00716.49
7.3.280.0070.01116.53
7.3.270.0160.00716.96
7.3.260.0100.00716.61
7.3.250.0100.01016.68
7.3.240.0110.01116.64
7.3.230.0130.00816.73
7.3.220.0080.01216.53
7.3.210.0110.00916.66
7.3.200.0120.01016.60
7.3.190.0140.00516.55
7.3.180.0110.00916.59
7.3.170.0110.01216.66
7.3.160.0120.00916.61
7.3.150.0030.01616.45
7.3.140.0140.00816.44
7.3.130.0140.00716.54
7.3.120.0140.00516.02
7.3.110.0090.01216.25
7.3.100.0100.01016.04
7.3.90.0130.00915.87
7.3.80.0140.00615.98
7.3.70.0080.01015.86
7.3.60.0100.00715.93
7.3.50.0090.01015.78
7.3.40.0090.01115.90
7.3.30.0100.00715.87
7.3.20.0090.01016.43
7.3.10.0100.00916.54
7.3.00.0070.01016.46
7.2.340.0210.01216.83
7.2.330.0140.01316.86
7.2.320.0260.00816.84
7.2.310.0220.00716.87
7.2.300.0160.01016.89
7.2.290.0220.00616.85
7.2.280.0210.00716.89
7.2.270.0220.01016.76
7.2.260.0150.01216.74
7.2.250.0150.01016.52
7.2.240.0140.01016.59
7.2.230.0120.01016.18
7.2.220.0110.01016.15
7.2.210.0110.01016.06
7.2.200.0140.00816.21
7.2.190.0140.00916.19
7.2.180.0150.00816.15
7.2.170.0150.00716.15
7.2.160.0200.00816.33
7.2.150.0160.01016.61
7.2.140.0160.00916.60
7.2.130.0140.00816.67
7.2.120.0150.00716.73
7.2.110.0150.00816.72
7.2.100.0130.01116.51
7.2.90.0590.00916.53
7.2.80.0530.00916.49
7.2.70.0600.00816.53
7.2.60.0510.00916.49
7.2.50.0550.00816.51
7.2.40.0460.01016.60
7.2.30.0430.00916.56
7.2.20.0450.01216.46
7.2.10.0610.00916.53
7.2.00.0430.00916.89
7.1.330.0140.00816.21
7.1.320.0120.01015.56
7.1.310.0110.01115.62
7.1.300.0130.00815.67
7.1.290.0100.01115.68
7.1.280.0100.01015.53
7.1.270.0130.00715.63
7.1.260.0140.01015.54
7.1.250.0130.00815.65
7.1.240.0180.00915.49
7.1.230.0140.00815.54
7.1.220.0550.00715.26
7.1.210.0560.00915.29
7.1.200.0550.00815.34
7.1.190.0570.01015.31
7.1.180.0710.00715.26
7.1.170.0610.00715.38
7.1.160.0550.00915.23
7.1.150.0510.00815.25
7.1.140.0570.01115.29
7.1.130.0510.00815.26
7.1.120.0480.00815.29
7.1.110.0460.00915.37
7.1.100.0410.00815.68
7.1.90.0320.01015.37
7.1.80.0350.00815.38
7.1.70.0250.00715.58
7.1.60.0270.01217.72
7.1.50.0320.01017.71
7.1.40.0260.01217.79
7.1.30.0280.00817.76
7.1.20.0290.01217.70
7.1.10.0240.01115.51
7.1.00.0240.00915.52
7.0.330.0180.00815.07
7.0.320.0150.01115.16
7.0.310.0680.00914.90
7.0.300.0580.01014.88
7.0.290.0590.00914.88
7.0.280.0550.00714.87
7.0.270.0400.00914.86
7.0.260.0620.00714.87
7.0.250.0550.01014.88
7.0.240.0550.01015.00
7.0.230.0380.01315.00
7.0.220.0470.00814.92
7.0.210.0500.01015.04
7.0.200.0210.01015.24
7.0.190.0290.01015.18
7.0.180.0270.00915.17
7.0.170.0250.01215.21
7.0.160.0320.00815.10
7.0.150.0240.00915.16
7.0.140.0260.01015.16
7.0.130.0230.01015.13
7.0.120.0220.01015.15
7.0.110.0330.00815.12
7.0.100.0400.01215.21
7.0.90.0210.00915.09
7.0.80.0280.00915.09
7.0.70.0190.00915.02
7.0.60.0320.00715.11
7.0.50.0250.01015.08
7.0.40.0230.00914.98
7.0.30.0230.00814.86
7.0.20.0190.01314.95
7.0.10.0440.00614.95
7.0.00.0250.00814.85
5.6.400.0140.01015.63
5.6.390.0130.01215.61
5.6.380.0120.01215.43
5.6.370.0160.01115.44
5.6.360.0160.01015.38
5.6.350.0160.01015.41
5.6.340.0140.01315.30
5.6.330.0160.00815.41
5.6.320.0140.01015.46
5.6.310.0140.01015.47
5.6.300.0130.01816.08
5.6.290.0120.02016.13
5.6.280.0150.01716.12
5.6.270.0120.01716.03
5.6.260.0160.01716.12
5.6.250.0130.01716.09
5.6.240.0130.02316.11
5.6.230.0140.01816.17
5.6.220.0130.01716.14
5.6.210.0150.01816.06
5.6.200.0140.01616.14
5.6.190.0170.01416.07
5.6.180.0170.01316.17
5.6.170.0130.02216.11
5.6.160.0170.01316.03
5.6.150.0150.01616.08
5.6.140.0140.01716.02
5.6.130.0170.01316.15
5.6.120.0150.01516.05
5.6.110.0130.02016.06
5.6.100.0150.01316.05
5.6.90.0140.01616.00
5.6.80.0140.01416.02
5.6.70.0120.02116.01
5.6.60.0150.01915.87
5.6.50.0130.01515.91
5.6.40.0120.01515.89
5.6.30.0140.01515.99
5.6.20.0130.01515.96
5.6.10.0110.02215.90
5.6.00.0150.01215.93
5.5.380.0160.01415.27
5.5.370.0160.01415.31
5.5.360.0150.01515.30
5.5.350.0120.01615.18
5.5.340.0170.01215.21
5.5.330.0170.01815.33
5.5.320.0140.01515.23
5.5.310.0120.01415.21
5.5.300.0110.02215.30
5.5.290.0160.01615.20
5.5.280.0120.02115.24
5.5.270.0150.01815.30
5.5.260.0140.01315.30
5.5.250.0150.01215.26
5.5.240.0150.01415.14
5.5.230.0140.01615.07
5.5.220.0130.01915.07
5.5.210.0130.01415.15
5.5.200.0150.01515.11
5.5.190.0160.01315.24
5.5.180.0150.01415.03
5.5.170.0140.01115.34
5.5.160.0160.01215.18
5.5.150.0120.01515.17
5.5.140.0120.01415.02
5.5.130.0160.01215.17
5.5.120.0120.01415.09
5.5.110.0130.01415.15
5.5.100.0160.01215.05
5.5.90.0130.01215.21
5.5.80.0140.01315.20
5.5.70.0110.01515.19
5.5.60.0140.01514.99
5.5.50.0140.01415.25
5.5.40.0110.01515.15
5.5.30.0090.01715.07
5.5.20.0150.01215.07
5.5.10.0140.01615.03
5.5.00.0160.01715.20
5.4.450.0120.01313.21
5.4.440.0110.01613.13
5.4.430.0180.00813.17
5.4.420.0110.01513.14
5.4.410.0100.01213.14
5.4.400.0120.01613.04
5.4.390.0120.01313.09
5.4.380.0110.01313.09
5.4.370.0130.01112.98
5.4.360.0150.01013.06
5.4.350.0130.01013.08
5.4.340.0120.01213.00
5.4.330.0130.00812.22
5.4.320.0120.01413.11
5.4.310.0120.01113.13
5.4.300.0130.01513.12
5.4.290.0100.01213.13
5.4.280.0120.01213.08
5.4.270.0120.01113.05
5.4.260.0110.01313.07
5.4.250.0100.01213.02
5.4.240.0140.00913.07
5.4.230.0130.00913.08
5.4.220.0130.01013.10
5.4.210.0130.01213.05
5.4.200.0120.01012.98
5.4.190.0130.01413.03
5.4.180.0130.01013.02
5.4.170.0110.01312.99
5.4.160.0110.01213.03
5.4.150.0110.01312.98
5.4.140.0120.01312.81
5.4.130.0100.01212.74
5.4.120.0130.01012.78
5.4.110.0080.01412.75
5.4.100.0120.01412.77
5.4.90.0120.01412.74
5.4.80.0100.01212.75
5.4.70.0090.01112.78
5.4.60.0110.01112.78
5.4.50.0120.01112.76
5.4.40.0110.01112.75
5.4.30.0110.01112.77
5.4.20.0110.01212.77
5.4.10.0110.01612.81
5.4.00.0110.01112.66
5.3.290.0080.01312.32
5.3.280.0100.01512.22
5.3.270.0090.01712.30
5.3.260.0110.01112.27
5.3.250.0110.01212.29
5.3.240.0090.01212.22
5.3.230.0110.01112.24
5.3.220.0110.01312.26
5.3.210.0120.01012.25
5.3.200.0090.01712.23
5.3.190.0120.01112.30
5.3.180.0090.01812.34
5.3.170.0100.01212.40
5.3.160.0140.01012.36
5.3.150.0110.01112.36
5.3.140.0080.01412.36
5.3.130.0120.01112.32
5.3.120.0120.01112.33
5.3.110.0100.01412.37
5.3.100.0090.01612.35
5.3.90.0100.01512.40
5.3.80.0080.01412.31
5.3.70.0070.01412.30
5.3.60.0100.01112.31
5.3.50.0120.00812.27
5.3.40.0100.01112.25
5.3.30.0100.01012.27
5.3.20.0090.01212.25
5.3.10.0100.01112.16
5.3.00.0100.01012.16
5.2.170.0060.01311.68
5.2.160.0100.01011.65
5.2.150.0100.01011.67
5.2.140.0080.01311.65
5.2.130.0100.01111.63
5.2.120.0070.01211.64
5.2.110.0090.00911.66
5.2.100.0100.01211.66
5.2.90.0110.00811.64
5.2.80.0080.01211.61
5.2.70.0060.01211.60
5.2.60.0090.01011.59
5.2.50.0070.01311.65
5.2.40.0080.01211.68
5.2.30.0110.00911.62
5.2.20.0090.01011.57
5.2.10.0100.00911.59
5.2.00.0080.01211.57
5.1.60.0070.01211.52
5.1.50.0090.01011.52
5.1.40.0060.01211.52
5.1.30.0080.00911.52
5.1.20.0090.00911.52
5.1.10.0090.00811.52
5.1.00.0060.01011.52
5.0.50.0060.00911.52
5.0.40.0070.00711.52
5.0.30.0050.01011.52
5.0.20.0070.00711.52
5.0.10.0040.00911.52
5.0.00.0060.00911.52
4.4.90.0040.00611.52
4.4.80.0050.00511.52
4.4.70.0050.00511.52
4.4.60.0040.00611.52
4.4.50.0050.00511.52
4.4.40.0050.00611.52
4.4.30.0050.00511.52
4.4.20.0040.00711.52
4.4.10.0040.00611.52
4.4.00.0040.00711.52
4.3.110.0040.00611.52
4.3.100.0050.00511.52
4.3.90.0050.00411.52
4.3.80.0040.00711.52
4.3.70.0030.00711.52
4.3.60.0050.00411.52
4.3.50.0060.00411.52
4.3.40.0030.00711.52
4.3.30.0040.00511.52
4.3.20.0030.00611.52
4.3.10.0030.00611.52
4.3.00.0040.00511.52

preferences:
47.46 ms | 400 KiB | 5 Q