3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime('2014-05-02'); $start->modify('first day of this month'); $end = new DateTime('2014-07-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("month") . 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.00318.93
8.3.30.0160.00319.21
8.3.20.0040.00420.33
8.3.10.0050.00323.65
8.3.00.0050.00317.59
8.2.170.0100.01022.96
8.2.160.0130.00020.16
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0000.00821.02
8.2.110.0060.00321.16
8.2.100.0040.00818.16
8.2.90.0000.00819.34
8.2.80.0060.00317.97
8.2.70.0030.00918.00
8.2.60.0040.00417.93
8.2.50.0040.00418.07
8.2.40.0080.00018.34
8.2.30.0040.00418.27
8.2.20.0030.00617.91
8.2.10.0040.00418.20
8.2.00.0000.00717.83
8.1.270.0080.00023.77
8.1.260.0070.00026.35
8.1.250.0060.00328.09
8.1.240.0060.00617.83
8.1.230.0100.00021.02
8.1.220.0040.00417.91
8.1.210.0030.00518.77
8.1.200.0060.00317.60
8.1.190.0030.00517.36
8.1.180.0040.00419.13
8.1.170.0030.00918.74
8.1.160.0070.00022.13
8.1.150.0040.00419.05
8.1.140.0070.00017.60
8.1.130.0000.00718.03
8.1.120.0070.00017.73
8.1.110.0040.00417.76
8.1.100.0040.00417.75
8.1.90.0070.00017.63
8.1.80.0030.00517.76
8.1.70.0030.00317.63
8.1.60.0000.00917.77
8.1.50.0060.00317.71
8.1.40.0030.00617.70
8.1.30.0060.00317.70
8.1.20.0050.00217.79
8.1.10.0040.00417.84
8.1.00.0040.00417.85
8.0.300.0000.00719.98
8.0.290.0070.00016.88
8.0.280.0040.00418.46
8.0.270.0030.00317.39
8.0.260.0030.00317.36
8.0.250.0050.00317.27
8.0.240.0000.00817.23
8.0.230.0070.00017.03
8.0.220.0000.00617.20
8.0.210.0000.00717.15
8.0.200.0070.00017.12
8.0.190.0000.00817.21
8.0.180.0030.00517.20
8.0.170.0050.00317.12
8.0.160.0040.00317.15
8.0.150.0030.00517.09
8.0.140.0000.00716.95
8.0.130.0080.00013.53
8.0.120.0050.00317.01
8.0.110.0050.00217.12
8.0.100.0040.00417.20
8.0.90.0040.00417.17
8.0.80.0090.00617.15
8.0.70.0040.00417.20
8.0.60.0040.00417.21
8.0.50.0080.00017.23
8.0.30.0080.01117.34
8.0.20.0120.00717.40
8.0.10.0040.00417.10
8.0.00.0080.01016.95
7.4.330.0060.00015.09
7.4.320.0030.00316.82
7.4.300.0000.00616.79
7.4.290.0100.00016.73
7.4.280.0040.00416.84
7.4.270.0040.00416.73
7.4.260.0040.00316.69
7.4.250.0030.00416.75
7.4.240.0050.00216.77
7.4.230.0040.00416.91
7.4.220.0200.00816.77
7.4.210.0060.00916.75
7.4.200.0060.00316.89
7.4.160.0060.01216.78
7.4.150.0130.00617.40
7.4.140.0090.01017.86
7.4.130.0110.00616.76
7.4.120.0080.00816.72
7.4.110.0060.01016.69
7.4.100.0090.00916.67
7.4.90.0080.00816.73
7.4.80.0190.00019.39
7.4.70.0070.01416.63
7.4.60.0060.01016.74
7.4.50.0000.00916.63
7.4.40.0070.01016.92
7.4.30.0040.01216.51
7.4.10.0070.01115.27
7.4.00.0030.01315.08
7.3.330.0000.00613.21
7.3.320.0020.00213.20
7.3.310.0070.00016.52
7.3.300.0030.00416.34
7.3.290.0100.00716.48
7.3.280.0040.01216.49
7.3.270.0100.01317.40
7.3.260.0100.00716.68
7.3.250.0080.00916.75
7.3.240.0100.01016.55
7.3.230.0060.01016.74
7.3.210.0140.00616.36
7.3.200.0140.00319.39
7.3.190.0030.01416.55
7.3.180.0100.00616.46
7.3.170.0070.01416.50
7.3.160.0130.00316.58
7.3.130.0150.00314.59
7.3.120.0080.00914.95
7.3.110.0090.00814.93
7.3.100.0050.01014.94
7.3.90.0000.01214.96
7.3.80.0080.00715.14
7.3.70.0040.00914.86
7.3.60.0030.01214.93
7.3.50.0040.00914.85
7.3.40.0080.00514.99
7.3.30.0030.01114.94
7.3.20.0050.00816.90
7.3.10.0080.00816.51
7.3.00.0090.00716.90
7.2.330.0070.01416.82
7.2.320.0070.01516.78
7.2.310.0120.00616.92
7.2.300.0070.01016.79
7.2.290.0110.00516.91
7.2.260.0110.00715.23
7.2.250.0090.00815.27
7.2.240.0030.01115.08
7.2.230.0140.00315.17
7.2.220.0070.00715.18
7.2.210.0070.00415.28
7.2.200.0050.00615.37
7.2.190.0050.00914.97
7.2.180.0050.01115.09
7.2.170.0050.00915.07
7.2.160.0050.00514.64
7.2.150.0070.00716.82
7.2.140.0040.01117.21
7.2.130.0060.00916.73
7.2.120.0090.00616.68
7.2.110.0070.00317.08
7.2.100.0110.00417.18
7.2.90.0090.00617.30
7.2.80.0030.01316.59
7.2.70.0060.00916.82
7.2.60.0100.00316.85
7.2.50.0000.01417.23
7.2.40.0060.00616.93
7.2.30.0120.00317.32
7.2.20.0030.01016.93
7.2.10.0090.00016.97
7.2.00.0060.00818.36
7.1.330.0070.00415.99
7.1.320.0090.00515.86
7.1.310.0030.01015.98
7.1.300.0040.00615.87
7.1.290.0100.00615.86
7.1.280.0090.00515.92
7.1.270.0070.00516.05
7.1.260.0040.00915.83
7.1.250.0060.00615.73
7.1.240.0080.00415.70
7.1.230.0030.00615.68
7.1.220.0100.00316.04
7.1.210.0030.00615.83
7.1.200.0100.00316.06
7.1.190.0070.00716.09
7.1.180.0030.00616.00
7.1.170.0070.00716.02
7.1.160.0090.00016.10
7.1.150.0060.01215.50
7.1.140.0090.00315.76
7.1.130.0000.01415.85
7.1.120.0030.01316.10
7.1.110.0060.00616.04
7.1.100.0070.00717.22
7.1.90.0070.00715.92
7.1.80.0100.00516.02
7.1.70.0070.00516.67
7.1.60.0110.01017.60
7.1.50.0070.00916.24
7.1.40.0060.00315.97
7.1.30.0040.00816.08
7.1.20.0030.01016.04
7.1.10.0030.01015.79
7.1.00.0030.04319.06
7.0.330.0030.00615.19
7.0.320.0030.00815.23
7.0.310.0110.00315.39
7.0.300.0090.00915.77
7.0.290.0030.01015.13
7.0.280.0050.00514.90
7.0.270.0030.00914.91
7.0.260.0040.00715.61
7.0.250.0000.01515.56
7.0.240.0000.01015.68
7.0.230.0060.00915.64
7.0.220.0060.00615.63
7.0.210.0090.00615.68
7.0.200.0080.00616.13
7.0.190.0070.00415.53
7.0.180.0000.00815.61
7.0.170.0000.01515.49
7.0.160.0090.00615.38
7.0.150.0050.00815.48
7.0.140.0100.04318.68
7.0.130.0060.00915.41
7.0.120.0030.00615.39
7.0.110.0090.00315.54
7.0.100.0060.00615.66
7.0.90.0030.01315.48
7.0.80.0000.01115.59
7.0.70.0030.01015.47
7.0.60.0090.03917.71
7.0.50.0080.04316.78
7.0.40.0120.04216.81
7.0.30.0130.02916.93
7.0.20.0180.04816.79
7.0.10.0050.05016.76
7.0.00.0050.02816.91
5.6.400.0030.01314.32
5.6.390.0030.01214.38
5.6.380.0070.01014.20
5.6.370.0070.01014.31
5.6.360.0090.00314.66
5.6.350.0070.00714.62
5.6.340.0070.00714.50
5.6.330.0000.01414.34
5.6.320.0060.00914.51
5.6.310.0030.00914.53
5.6.300.0060.00314.59
5.6.290.0040.00714.45
5.6.280.0050.04117.91
5.6.270.0070.00714.61
5.6.260.0050.00514.22
5.6.250.0060.00614.57
5.6.240.0090.00614.30
5.6.230.0090.00314.67
5.6.220.0060.00914.21
5.6.210.0030.02617.51
5.6.200.0080.04516.33
5.6.190.0050.02317.49
5.6.180.0130.02517.43
5.6.170.0100.02417.47
5.6.160.0060.04617.34
5.6.150.0080.04516.42
5.6.140.0080.04216.36
5.6.130.0100.03816.35
5.6.120.0060.03117.65
5.6.110.0050.03517.71
5.6.100.0070.02117.86
5.6.90.0060.02117.62
5.6.80.0100.01617.32
5.6.70.0080.00814.05
5.6.60.0060.00314.24
5.6.50.0120.00314.29
5.6.40.0070.00714.38
5.6.30.0100.00014.23
5.6.20.0060.00314.30
5.6.10.0030.01114.33
5.6.00.0030.00914.34
5.5.380.0060.00914.50
5.5.370.0030.01014.58
5.5.360.0100.00314.37
5.5.350.1370.02317.41
5.5.340.0070.04716.17
5.5.330.0080.04517.41
5.5.320.0170.02717.39
5.5.310.0180.03917.16
5.5.300.0030.04516.12
5.5.290.0080.02516.22
5.5.280.0030.02517.67
5.5.270.0050.02217.61
5.5.260.0070.04517.71
5.5.250.0090.04117.58
5.5.240.0050.04817.44
5.5.230.0030.01014.25
5.5.220.0070.00314.28
5.5.210.0070.00714.49
5.5.200.0090.00614.21
5.5.190.0050.00514.44
5.5.180.0000.01314.12
5.5.170.0030.01414.16
5.5.160.0110.00414.49
5.5.150.0000.00814.44
5.5.140.0030.00614.27
5.5.130.0070.00314.20
5.5.120.0090.00614.27
5.5.110.0100.00314.26
5.5.100.0000.00814.54
5.5.90.0070.00714.41
5.5.80.0030.01014.08
5.5.70.0060.00614.39
5.5.60.0030.01014.27
5.5.50.0030.01214.13
5.5.40.0070.00714.34
5.5.30.0030.01014.16
5.5.20.0080.00814.31
5.5.10.0100.00614.58
5.5.00.0030.01014.23
5.4.450.0080.02615.19
5.4.440.0120.02115.29
5.4.430.0100.02115.20
5.4.420.0170.02515.05
5.4.410.0230.02315.15
5.4.400.0330.02015.11
5.4.390.0100.02915.07
5.4.380.0100.03014.81
5.4.370.0220.03214.72
5.4.360.0230.02814.87
5.4.350.0180.02715.04
5.4.340.0180.02814.87
5.4.330.0040.00411.23
5.4.320.0020.02411.79
5.4.310.0030.02311.72
5.4.300.0060.01911.86
5.4.290.0050.02311.73
5.4.280.0030.02411.68
5.4.270.0030.02411.65
5.4.260.0070.02111.80
5.4.250.0030.02411.69
5.4.240.0030.02111.54
5.4.230.0040.02111.72
5.4.220.0090.01911.69
5.4.210.0040.02311.56
5.4.200.0040.02511.69
5.4.190.0060.01911.58
5.4.180.0030.02311.85
5.4.170.0050.02111.51
5.4.160.0060.02411.67
5.4.150.0040.02211.62
5.4.140.0040.02111.63
5.4.130.0030.02011.60
5.4.120.0060.01911.45
5.4.110.0060.01811.39
5.4.100.0060.01911.58
5.4.90.0040.02211.55
5.4.80.0040.02711.58
5.4.70.0010.02411.48
5.4.60.0050.01911.65
5.4.50.0060.02311.48
5.4.40.0070.01911.60
5.4.30.0050.01911.57
5.4.20.0040.02011.54
5.4.10.0060.01911.48
5.4.00.0030.02311.14
5.3.290.0060.03812.80
5.3.280.0040.03812.71
5.3.270.0040.04012.72
5.3.260.0080.03912.71
5.3.250.0030.04012.72
5.3.240.0080.03312.72
5.3.230.0070.03412.70
5.3.220.0050.04312.68
5.3.210.0040.03912.68
5.3.200.0050.04112.68
5.3.190.0080.03912.68
5.3.180.0060.03512.67
5.3.170.0070.03512.67
5.3.160.0070.03612.68
5.3.150.0040.03912.67
5.3.140.0060.03612.66
5.3.130.0070.03712.66
5.3.120.0050.03912.66
5.3.110.0050.03812.66
5.3.100.0060.04012.12
5.3.90.0090.03412.09
5.3.80.0090.03412.08
5.3.70.0100.03312.07
5.3.60.0030.03812.07
5.3.50.0060.03412.00
5.3.40.0050.03612.00
5.3.30.0070.03511.95
5.3.20.0060.03411.72
5.3.10.0060.03611.70
5.3.00.0050.03711.68
5.2.170.0060.0289.19
5.2.160.0030.0309.19
5.2.150.0080.0319.19
5.2.140.0070.0279.18
5.2.130.0090.0239.15
5.2.120.0030.0309.14
5.2.110.0070.0349.15
5.2.100.0050.0279.15
5.2.90.0030.0309.14
5.2.80.0040.0339.14
5.2.70.0040.0309.14
5.2.60.0060.0289.10
5.2.50.0090.0289.07
5.2.40.0090.0259.04
5.2.30.0030.0309.02
5.2.20.0030.0319.00
5.2.10.0020.0318.93
5.2.00.0050.0348.79
5.1.60.0070.0198.07
5.1.50.0040.0248.07
5.1.40.0090.0228.04
5.1.30.0020.0278.40
5.1.20.0050.0328.42
5.1.10.0060.0288.14
5.1.00.0040.0268.14
5.0.50.0040.0246.62
5.0.40.0020.0286.48
5.0.30.0040.0296.29
5.0.20.0040.0186.27
5.0.10.0040.0226.24
5.0.00.0020.0316.23
4.4.90.0040.0184.78
4.4.80.0010.0244.76
4.4.70.0030.0144.76
4.4.60.0030.0224.75
4.4.50.0040.0134.77
4.4.40.0010.0264.71
4.4.30.0030.0184.76
4.4.20.0050.0164.85
4.4.10.0040.0184.85
4.4.00.0030.0254.76
4.3.110.0020.0154.67
4.3.100.0050.0144.67
4.3.90.0030.0234.64
4.3.80.0020.0244.59
4.3.70.0020.0194.63
4.3.60.0030.0134.63
4.3.50.0030.0154.63
4.3.40.0040.0294.54
4.3.30.0030.0223.28
4.3.20.0010.0163.26
4.3.10.0020.0233.21
4.3.00.0030.01715.97

preferences:
43.9 ms | 400 KiB | 5 Q