3v4l.org

run code in 300+ PHP versions simultaneously
<?php $begin_date = new DateTime('2016-01-01 00:00:00'); $end_date = new DateTime('2017-05-02 23:59:59'); $result = array(); $current = clone $begin_date; while ($current < $end_date) { array_push($result, $current->format('Y-m')); $current->add(DateInterval::createFromDateString('1 Month')); } var_dump($result);

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.70.0120.00916.88
8.3.60.0000.01518.18
8.3.50.0140.00621.33
8.3.40.0090.00918.89
8.3.30.0110.00418.84
8.3.20.0040.00420.38
8.3.10.0080.00021.77
8.3.00.0070.00319.26
8.2.190.0130.00316.75
8.2.180.0120.00318.54
8.2.170.0150.00022.96
8.2.160.0140.00419.41
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0000.00820.47
8.2.120.0000.00826.35
8.2.110.0060.00320.64
8.2.100.0060.00619.46
8.2.90.0060.00317.88
8.2.80.0000.00818.98
8.2.70.0000.00817.86
8.2.60.0040.00418.05
8.2.50.0000.00818.18
8.2.40.0040.00420.73
8.2.30.0000.00819.30
8.2.20.0000.00718.12
8.2.10.0040.00418.36
8.2.00.0000.00718.38
8.1.280.0160.00325.92
8.1.270.0090.00024.04
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00324.04
8.1.230.0050.00521.10
8.1.220.0030.00617.74
8.1.210.0000.00818.77
8.1.200.0040.00417.61
8.1.190.0030.00617.48
8.1.180.0060.00318.10
8.1.170.0030.00618.77
8.1.160.0050.00319.04
8.1.150.0000.00720.27
8.1.140.0000.00719.73
8.1.130.0080.00019.14
8.1.120.0000.00817.76
8.1.110.0000.00717.76
8.1.100.0000.00817.62
8.1.90.0050.00317.61
8.1.80.0070.00017.71
8.1.70.0000.00717.68
8.1.60.0040.00417.82
8.1.50.0080.00417.64
8.1.40.0080.00017.76
8.1.30.0040.00417.86
8.1.20.0090.00317.89
8.1.10.0040.00417.68
8.1.00.0040.00417.66
8.0.300.0000.01118.77
8.0.290.0000.00716.88
8.0.280.0000.00718.65
8.0.270.0090.00017.39
8.0.260.0000.00619.15
8.0.250.0000.00717.12
8.0.240.0060.00317.14
8.0.230.0050.00217.13
8.0.220.0040.00417.17
8.0.210.0040.00417.07
8.0.200.0080.00017.32
8.0.190.0000.00917.19
8.0.180.0050.00317.08
8.0.170.0040.00417.11
8.0.160.0000.00917.03
8.0.150.0000.00917.16
8.0.140.0040.00417.12
8.0.130.0030.00313.57
8.0.120.0040.00417.14
8.0.110.0040.00417.05
8.0.100.0040.00417.07
8.0.90.0030.00517.13
8.0.80.0030.01417.17
8.0.70.0000.00817.05
8.0.60.0000.00817.12
8.0.50.0040.00417.21
8.0.30.0080.00917.26
8.0.20.0120.00717.40
8.0.10.0040.00417.32
8.0.00.0070.01717.13
7.4.330.0060.00015.55
7.4.320.0030.00316.74
7.4.300.0030.00316.89
7.4.290.0000.00716.82
7.4.280.0070.00016.78
7.4.270.0030.00316.78
7.4.260.0030.00616.74
7.4.250.0000.00716.70
7.4.240.0050.00216.73
7.4.230.0000.00716.87
7.4.220.0060.01316.82
7.4.210.0120.00316.66
7.4.200.0000.00716.84
7.4.160.0140.00516.81
7.4.150.0160.00517.40
7.4.140.0120.00617.86
7.4.130.0090.01616.85
7.4.120.0130.01016.76
7.4.110.0080.01216.64
7.4.100.0130.00416.84
7.4.90.0070.01016.61
7.4.80.0140.00819.39
7.4.70.0100.01316.73
7.4.60.0170.00016.59
7.4.50.0060.00716.52
7.4.40.0070.01016.42
7.4.30.0100.00716.72
7.4.00.0100.00714.89
7.3.330.0000.00513.27
7.3.320.0060.00013.22
7.3.310.0030.00316.49
7.3.300.0070.00016.35
7.3.290.0070.01016.39
7.3.280.0080.00916.39
7.3.270.0150.00417.40
7.3.260.0080.01016.47
7.3.240.0070.01516.54
7.3.230.0090.00916.56
7.3.210.0090.00916.68
7.3.200.0120.01216.51
7.3.190.0000.01716.57
7.3.180.0140.00916.36
7.3.170.0080.01216.50
7.3.160.0080.00816.63
7.3.10.0030.00916.78
7.3.00.0030.00616.89
7.2.330.0150.00516.65
7.2.320.0030.01416.58
7.2.310.0110.01116.52
7.2.300.0140.00616.75
7.2.290.0060.01216.65
7.2.130.0040.01116.81
7.2.120.0110.00017.15
7.2.110.0030.01017.14
7.2.100.0090.00317.13
7.2.90.0040.00417.15
7.2.80.0080.00516.97
7.2.70.0070.00717.08
7.2.60.0040.01017.14
7.2.50.0040.00417.11
7.2.40.0090.00616.57
7.2.30.0120.00316.85
7.2.20.0120.00017.01
7.2.10.0030.00616.97
7.2.00.0030.01317.03
7.1.250.0050.00516.11
7.1.200.0040.01116.01
7.1.70.0030.00617.32
7.1.60.0040.00917.49
7.1.40.0150.01034.72
7.1.30.0100.01334.65
7.1.20.0130.01034.55
7.1.10.0000.01316.71
7.1.00.0070.00316.93
7.0.200.0170.00317.05
7.0.180.0100.00316.25
7.0.170.0000.01316.41
7.0.160.0030.00716.31
7.0.150.0030.01016.26
7.0.140.0030.01316.14
7.0.130.0030.01316.50
7.0.120.0000.01716.61
7.0.110.0070.01016.38
7.0.100.0130.00316.36
7.0.90.0030.01716.53
7.0.80.0070.01016.44
7.0.70.0000.01316.31
7.0.60.0030.00716.21
7.0.50.0070.01316.41
7.0.40.0030.01016.61
7.0.30.0070.01016.54
7.0.20.0100.00716.25
7.0.10.0130.00316.62
7.0.00.0030.01016.41

preferences:
63.67 ms | 401 KiB | 5 Q