3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime('2010-12'); $start->modify('first day of this month'); $end = new DateTime('2012-05'); $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.40.0110.00418.89
8.3.30.0110.00419.07
8.3.20.0040.00420.09
8.3.10.0040.00420.79
8.3.00.0050.00319.38
8.2.170.0110.00422.96
8.2.160.0090.00620.35
8.2.150.0040.00424.18
8.2.140.0070.00424.66
8.2.130.0050.00226.16
8.2.120.0040.00420.76
8.2.110.0100.00020.49
8.2.100.0040.00818.16
8.2.90.0050.00319.34
8.2.80.0040.00418.00
8.2.70.0060.00317.88
8.2.60.0000.00818.16
8.2.50.0050.00318.07
8.2.40.0000.00818.16
8.2.30.0080.00019.48
8.2.20.0000.00817.98
8.2.10.0040.00418.21
8.2.00.0040.00418.02
8.1.270.0060.00322.18
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0060.00323.87
8.1.230.0040.00719.29
8.1.220.0030.00517.74
8.1.210.0080.00018.77
8.1.200.0070.00317.47
8.1.190.0030.00617.48
8.1.180.0000.00818.10
8.1.170.0000.00818.68
8.1.160.0020.00522.05
8.1.150.0040.00419.02
8.1.140.0000.00817.68
8.1.130.0000.00817.89
8.1.120.0050.00217.64
8.1.110.0000.00817.61
8.1.100.0070.00017.74
8.1.90.0040.00417.76
8.1.80.0040.00417.63
8.1.70.0000.00717.59
8.1.60.0030.00517.81
8.1.50.0050.00317.68
8.1.40.0120.00417.72
8.1.30.0110.00617.75
8.1.20.0130.00617.81
8.1.10.0140.00517.69
8.1.00.0140.00617.72
8.0.300.0000.00918.77
8.0.290.0040.00417.00
8.0.280.0000.00718.57
8.0.270.0070.00017.39
8.0.260.0000.00617.41
8.0.250.0030.00317.25
8.0.240.0000.00817.25
8.0.230.0040.00417.29
8.0.220.0030.00317.14
8.0.210.0060.00317.14
8.0.200.0000.00717.18
8.0.190.0000.00817.22
8.0.180.0040.00417.09
8.0.170.0110.00317.16
8.0.160.0110.00517.08
8.0.150.0100.00816.98
8.0.140.0120.00617.07
8.0.130.0130.00415.84
8.0.120.0120.00417.17
8.0.110.0110.00517.08
8.0.100.0110.00217.11
8.0.90.0060.00617.12
8.0.80.0090.00617.10
8.0.70.0090.00517.12
8.0.60.0080.00417.09
8.0.50.0120.00317.05
8.0.30.0140.00817.24
8.0.20.0130.00817.34
8.0.10.0180.00517.25
8.0.00.0120.00717.21
7.4.330.0050.00015.21
7.4.320.0000.00716.71
7.4.300.0000.00616.80
7.4.290.0200.00716.85
7.4.280.0090.00416.66
7.4.270.0110.00716.67
7.4.260.0120.00616.76
7.4.250.0110.00516.68
7.4.240.0100.00416.75
7.4.230.0130.00416.71
7.4.220.0130.00716.71
7.4.210.0110.00716.75
7.4.200.0130.00316.74
7.4.190.0130.00816.83
7.4.180.0160.00516.80
7.4.160.0150.00716.75
7.4.150.0190.00316.83
7.4.140.0160.00417.10
7.4.130.0200.00516.71
7.4.120.0130.00716.67
7.4.110.0160.00616.61
7.4.100.0150.00816.65
7.4.90.0170.00616.64
7.4.80.0130.00817.35
7.4.70.0140.00916.65
7.4.60.0150.00816.58
7.4.50.0120.00816.50
7.4.40.0150.00616.56
7.4.30.0170.00416.66
7.4.20.0150.01016.58
7.4.10.0140.00616.56
7.4.00.0110.00816.07
7.3.330.0120.00415.36
7.3.320.0120.00415.48
7.3.310.0130.00316.42
7.3.300.0130.00416.47
7.3.290.0120.00616.40
7.3.280.0140.00616.41
7.3.270.0170.00816.67
7.3.260.0140.00816.46
7.3.250.0130.00916.42
7.3.240.0170.00516.52
7.3.230.0140.00816.51
7.3.220.0170.00816.40
7.3.210.0140.00916.45
7.3.200.0140.00916.46
7.3.190.0130.00916.54
7.3.180.0180.00516.45
7.3.170.0150.00916.55
7.3.160.0170.00516.52
7.3.150.0170.00516.52
7.3.140.0140.00616.43
7.3.130.0140.00816.46
7.3.120.0110.00916.17
7.3.110.0130.00516.10
7.3.100.0120.00816.07
7.3.90.0150.00216.29
7.3.80.0110.00815.92
7.3.70.0120.00716.02
7.3.60.0110.00716.02
7.3.50.0120.00716.05
7.3.40.0090.01015.96
7.3.30.0090.00815.89
7.3.20.0380.00716.20
7.3.10.0470.00616.20
7.3.00.0380.00815.96
7.2.340.0180.00616.66
7.2.330.0170.00516.80
7.2.320.0180.00516.75
7.2.310.0180.00616.82
7.2.300.0160.00616.69
7.2.290.0160.00716.84
7.2.280.0190.00616.75
7.2.270.0150.00716.70
7.2.260.0130.01016.76
7.2.250.0140.00716.56
7.2.240.0150.00616.41
7.2.230.0120.00916.47
7.2.220.0140.00716.37
7.2.210.0110.00816.25
7.2.200.0160.00516.26
7.2.190.0100.01016.20
7.2.180.0130.00816.29
7.2.170.0160.00416.25
7.2.160.0110.01016.11
7.2.150.0460.00716.42
7.2.140.0360.00716.52
7.2.130.0470.00716.31
7.2.120.0460.00616.32
7.2.110.0580.00816.32
7.2.100.0380.00816.29
7.2.90.0350.00516.27
7.2.80.0320.00716.34
7.2.70.0400.00816.39
7.2.60.0430.00616.28
7.2.50.0310.00916.41
7.2.40.0350.00616.42
7.2.30.0430.00816.37
7.2.20.0520.01016.46
7.2.10.0340.00516.44
7.2.00.0330.00516.69
7.1.330.0190.00515.88
7.1.320.0150.00715.82
7.1.310.0130.00915.51
7.1.300.0290.00615.53
7.1.290.0140.00715.51
7.1.280.0150.00615.43
7.1.270.0400.00815.41
7.1.260.0360.00715.23
7.1.250.0430.00715.04
7.1.240.0520.00715.14
7.1.230.0370.00615.27
7.1.220.0320.00815.19
7.1.210.0590.00615.25
7.1.200.0380.00915.20
7.1.190.0340.00915.25
7.1.180.0450.00615.21
7.1.170.0410.00815.19
7.1.160.0390.00815.19
7.1.150.0350.00915.22
7.1.140.0360.00515.16
7.1.130.0320.00815.19
7.1.120.0350.00915.11
7.1.110.0450.00615.26
7.1.100.0340.00515.21
7.1.90.0310.00915.20
7.1.80.0280.00615.22
7.1.70.0220.00815.27
7.1.60.0240.00915.51
7.1.50.0240.00815.49
7.1.40.0360.00615.39
7.1.30.0310.00815.38
7.1.20.0290.00715.36
7.1.10.0270.00515.36
7.1.00.0400.00715.38
7.0.330.0440.00614.73
7.0.320.0320.00814.78
7.0.310.0310.00814.73
7.0.300.0350.00614.83
7.0.290.0380.00714.82
7.0.280.0390.00714.80
7.0.270.0370.00714.84
7.0.260.0350.00614.73
7.0.250.0370.00714.94
7.0.240.0310.00714.89
7.0.230.0280.00614.88
7.0.220.0270.00814.91
7.0.210.0280.00614.87
7.0.200.0230.00615.13
7.0.190.0240.00615.02
7.0.180.0240.00515.07
7.0.170.0260.00615.07
7.0.160.0250.00715.00
7.0.150.0220.00615.04
7.0.140.0240.00815.11
7.0.130.0220.00715.07
7.0.120.0250.00715.11
7.0.110.0190.00615.02
7.0.100.0230.00715.08
7.0.90.0210.00514.98
7.0.80.0200.00715.00
7.0.70.0230.00615.00
7.0.60.0180.01115.07
7.0.50.0190.00715.06
7.0.40.0270.00614.87
7.0.30.0230.00514.85
7.0.20.0160.00714.79
7.0.10.0180.00814.79
7.0.00.0260.00814.85
5.6.400.0130.00915.38
5.6.390.0150.00815.31
5.6.380.0150.00615.12
5.6.370.0150.00615.12
5.6.360.0110.01115.20
5.6.350.0170.00715.07
5.6.340.0140.00915.19
5.6.330.0120.00915.14
5.6.320.0130.01015.08
5.6.310.0170.00615.22
5.6.300.0140.01215.65
5.6.290.0150.01215.64
5.6.280.0130.01115.63
5.6.270.0120.01515.69
5.6.260.0130.01215.78
5.6.250.0120.01115.65
5.6.240.0160.00915.73
5.6.230.0140.01015.70
5.6.220.0130.01215.69
5.6.210.0140.01115.67
5.6.200.0120.01315.73
5.6.190.0130.01215.69
5.6.180.0150.01015.73
5.6.170.0120.01115.71
5.6.160.0110.01415.75
5.6.150.0120.01115.76
5.6.140.0130.01315.76
5.6.130.0140.00915.76
5.6.120.0140.01115.78
5.6.110.0130.01115.64
5.6.100.0130.01115.61
5.6.90.0120.01215.64
5.6.80.0120.01115.60
5.6.70.0130.00915.63
5.6.60.0110.01315.65
5.6.50.0120.01215.60
5.6.40.0110.01215.62
5.6.30.0100.01315.57
5.6.20.0130.01015.56
5.6.10.0090.01315.69
5.6.00.0120.01115.59
5.5.380.0120.01114.88
5.5.370.0120.01014.86
5.5.360.0130.01014.77
5.5.350.0130.01014.87
5.5.340.0120.01114.87
5.5.330.0130.01414.83
5.5.320.0120.01214.84
5.5.310.0120.01214.88
5.5.300.0090.01214.93
5.5.290.0100.01114.88
5.5.280.0120.01114.93
5.5.270.0110.01014.93
5.5.260.0110.01314.85
5.5.250.0100.01314.93
5.5.240.0120.01114.83
5.5.230.0120.01114.77
5.5.220.0110.01014.87
5.5.210.0100.01214.82
5.5.200.0130.00914.79
5.5.190.0130.01014.71
5.5.180.0110.01214.76
5.5.170.0110.00814.98
5.5.160.0110.01014.78
5.5.150.0110.01114.76
5.5.140.0130.00914.75
5.5.130.0100.01114.74
5.5.120.0110.01114.72
5.5.110.0140.00914.68
5.5.100.0100.01114.77
5.5.90.0130.00914.67
5.5.80.0100.01214.82
5.5.70.0140.01114.77
5.5.60.0130.01014.71
5.5.50.0110.01214.80
5.5.40.0140.01014.77
5.5.30.0130.00914.79
5.5.20.0100.01014.78
5.5.10.0120.01014.69
5.5.00.0130.01214.69
5.4.450.0110.00913.05
5.4.440.0110.00713.08
5.4.430.0110.01213.02
5.4.420.0110.00813.09
5.4.410.0100.00813.10
5.4.400.0090.00813.02
5.4.390.0070.01113.04
5.4.380.0120.00713.02
5.4.370.0090.00813.00
5.4.360.0110.00813.00
5.4.350.0090.00913.00
5.4.340.0070.01112.98
5.4.330.0100.00612.33
5.4.320.0080.01112.97
5.4.310.0080.00913.01
5.4.300.0080.01012.96
5.4.290.0100.00913.06
5.4.280.0120.00713.02
5.4.270.0090.00912.96
5.4.260.0100.00912.99
5.4.250.0120.00713.02
5.4.240.0080.00912.95
5.4.230.0110.00812.95
5.4.220.0110.00712.95
5.4.210.0110.00712.98
5.4.200.0110.01112.88
5.4.190.0100.00912.94
5.4.180.0100.00912.91
5.4.170.0090.01012.94
5.4.160.0100.00912.94
5.4.150.0100.00912.98
5.4.140.0100.00812.72
5.4.130.0120.00912.73
5.4.120.0100.00812.79
5.4.110.0130.00812.78
5.4.100.0100.01012.74
5.4.90.0100.00912.75
5.4.80.0080.01212.78
5.4.70.0110.00712.79
5.4.60.0130.00812.78
5.4.50.0110.00912.79
5.4.40.0100.01212.77
5.4.30.0110.00812.76
5.4.20.0100.01412.75
5.4.10.0110.00912.78
5.4.00.0090.01112.64

preferences:
43.78 ms | 400 KiB | 5 Q