3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime('2010-12-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; echo new DateTime('2015-09-03'), "\n"; }

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.0100.01618.81
8.3.50.0150.00321.21
8.3.40.0090.00618.86
8.3.30.0070.00718.74
8.3.20.0070.00020.39
8.3.10.0000.00723.66
8.3.00.0080.00019.68
8.2.180.0090.00917.00
8.2.170.0000.01522.96
8.2.160.0070.00720.35
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0060.00317.88
8.2.110.0040.00420.64
8.2.100.0040.00818.03
8.2.90.0060.00319.38
8.2.80.0000.00817.97
8.2.70.0040.00417.88
8.2.60.0060.00318.05
8.2.50.0000.00818.07
8.2.40.0040.00719.45
8.2.30.0080.00019.95
8.2.20.0070.00018.09
8.2.10.0040.00418.13
8.2.00.0050.00318.22
8.1.280.0090.00925.92
8.1.270.0100.01020.38
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0110.00022.23
8.1.230.0120.00022.23
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0030.00717.60
8.1.190.0000.00917.60
8.1.180.0060.00318.10
8.1.170.0000.00818.75
8.1.160.0030.00322.01
8.1.150.0000.00719.08
8.1.140.0080.00017.64
8.1.130.0040.00417.82
8.1.120.0040.00417.79
8.1.110.0000.00717.77
8.1.100.0060.00317.63
8.1.90.0040.00417.63
8.1.80.0050.00317.77
8.1.70.0040.00417.73
8.1.60.0030.00617.78
8.1.50.0000.00817.78
8.1.40.0000.00817.70
8.1.30.0000.00917.86
8.1.20.0000.00717.83
8.1.10.0040.00417.75
8.1.00.0040.00417.79
8.0.300.0070.00318.77
8.0.290.0060.00317.13
8.0.280.0000.00818.62
8.0.270.0030.00317.34
8.0.260.0070.00017.42
8.0.250.0070.00017.25
8.0.240.0040.00417.35
8.0.230.0000.00717.33
8.0.220.0000.00717.17
8.0.210.0000.00717.14
8.0.200.0040.00417.34
8.0.190.0040.00417.28
8.0.180.0000.00717.16
8.0.170.0050.00317.30
8.0.160.0050.00217.20
8.0.150.0000.00817.19
8.0.140.0000.00717.14
8.0.130.0030.00313.61
8.0.120.0030.00517.17
8.0.110.0000.00717.09
8.0.100.0040.00417.19
8.0.90.0000.00717.04
8.0.80.0090.00617.25
8.0.70.0070.00017.09
8.0.60.0040.00417.25
8.0.50.0030.00517.29
8.0.30.0080.00917.39
8.0.20.0080.01117.40
8.0.10.0050.00217.40
8.0.00.0100.00817.07
7.4.330.0000.00615.09
7.4.320.0000.00616.75
7.4.300.0030.00316.73
7.4.290.0040.00416.72
7.4.280.0040.00416.82
7.4.270.0070.00016.80
7.4.260.0000.00716.73
7.4.250.0050.00216.70
7.4.240.0050.00316.73
7.4.230.0080.00016.83
7.4.220.0070.01016.67
7.4.210.0060.00916.63
7.4.200.0000.00716.94
7.4.160.0140.00716.84
7.4.150.0000.01717.40
7.4.140.0070.01117.86
7.4.130.0130.00516.81
7.4.120.0090.01016.86
7.4.110.0110.00816.77
7.4.100.0130.00316.92
7.4.90.0050.01316.96
7.4.80.0090.00919.39
7.4.70.0070.01316.81
7.4.60.0000.01716.84
7.4.50.0060.00316.83
7.4.40.0030.01317.03
7.4.30.0120.00916.80
7.4.00.0040.01215.44
7.3.330.0060.00013.43
7.3.320.0050.00013.38
7.3.310.0070.00016.63
7.3.300.0070.00016.48
7.3.290.0070.00916.57
7.3.280.0120.00816.56
7.3.270.0100.00717.40
7.3.260.0080.00816.63
7.3.250.0100.01116.62
7.3.240.0070.01016.64
7.3.230.0130.00716.96
7.3.210.0100.00516.62
7.3.200.0060.00916.78
7.3.190.0080.00816.59
7.3.180.0100.00616.73
7.3.170.0140.00716.68
7.3.160.0050.01316.67
7.3.10.0080.00816.76
7.3.00.0080.00816.63
7.2.330.0120.00616.86
7.2.320.0060.01216.79
7.2.310.0070.01016.97
7.2.300.0070.01016.93
7.2.290.0090.01516.80
7.2.130.0100.00716.93
7.2.120.0110.00716.92
7.2.110.0060.01016.97
7.2.100.0050.01017.04
7.2.90.0090.00917.16
7.2.80.0120.00417.04
7.2.70.0140.00917.01
7.2.60.0060.01016.94
7.2.50.0120.00917.17
7.2.40.0110.00517.16
7.2.30.0090.00716.88
7.2.20.0040.01017.06
7.2.10.0130.00517.10
7.2.00.0060.01217.95
7.1.250.0070.01115.95
7.1.240.0030.00715.82
7.1.230.0070.00716.13
7.1.220.0000.01615.77
7.1.210.0080.00815.89
7.1.200.0000.01416.08
7.1.190.0060.01016.14
7.1.180.0100.00316.20
7.1.170.0000.01015.68
7.1.160.0040.00716.06
7.1.150.0030.01015.96
7.1.140.0060.00316.00
7.1.130.0060.00615.90
7.1.120.0000.01315.63
7.1.110.0000.01516.02
7.1.100.0050.00617.30
7.1.90.0030.00615.71
7.1.80.0060.01016.05
7.1.70.0050.00316.73
7.1.60.0060.01217.58
7.1.50.0120.00625.56
7.1.40.0060.00816.01
7.1.30.0070.00715.87
7.1.20.0030.01016.01
7.1.10.0040.00815.88
7.1.00.0020.04719.11
7.0.330.0120.00015.75
7.0.320.0040.01115.36
7.0.310.0090.00015.21
7.0.300.0030.01015.54
7.0.290.0060.00615.54
7.0.280.0060.00315.34
7.0.270.0030.00915.55
7.0.260.0030.00715.27
7.0.250.0070.00715.59
7.0.240.0070.00715.59
7.0.230.0030.01015.23
7.0.220.0090.00615.36
7.0.210.0000.01315.57
7.0.200.0020.00816.29
7.0.190.0070.00715.56
7.0.180.0080.00015.49
7.0.170.0100.00615.51
7.0.160.0030.01015.51
7.0.150.0100.00715.56
7.0.140.0120.00315.67
7.0.130.0030.01215.64
7.0.120.0080.00615.47
7.0.110.0070.00715.43
7.0.100.0060.00615.63
7.0.90.0070.00715.78
7.0.80.0070.00715.78
7.0.70.0110.00415.71
7.0.60.0090.04517.61
7.0.50.0060.02916.84
7.0.40.0070.02816.93
7.0.30.0340.03816.91
7.0.20.0140.04016.92
7.0.10.0050.04416.80
7.0.00.0080.02316.78
5.6.380.0070.00314.63
5.6.370.0130.00314.22
5.6.360.0030.01314.65
5.6.350.0040.00414.42
5.6.340.0000.00914.13
5.6.330.0000.00814.22
5.6.320.0030.01014.32
5.6.310.0090.00314.16
5.6.300.0080.00814.02
5.6.290.0030.01014.04
5.6.280.0020.04217.73
5.6.270.0000.00914.48
5.6.260.0000.01514.57
5.6.250.0100.00314.47
5.6.240.0080.00614.06
5.6.230.0030.00614.38
5.6.220.0060.00614.57
5.6.210.0050.02817.67
5.6.200.0000.04216.32
5.6.190.0020.03017.46
5.6.180.0150.04617.54
5.6.170.0270.02917.30
5.6.160.0100.02217.35
5.6.150.0040.02916.23
5.6.140.0030.04716.33
5.6.130.0100.03316.40
5.6.120.0090.02517.66
5.6.110.0130.03517.75
5.6.100.0100.04217.75
5.6.90.0060.02517.69
5.6.80.0030.04517.38
5.6.70.2320.02517.36
5.6.60.0060.00314.38
5.6.50.0040.01113.98
5.6.40.0000.00914.70
5.6.30.0040.00814.28
5.6.20.0060.01214.24
5.6.10.0070.00314.26
5.6.00.0030.01014.48
5.5.380.0060.00311.64
5.5.370.0030.00711.64
5.5.360.0100.00311.64
5.5.350.0060.02816.02
5.5.340.0050.03214.78
5.5.330.0080.04215.90
5.5.320.0150.02815.97
5.5.310.0230.03315.97
5.5.300.0040.02414.82
5.5.290.0050.04614.78
5.5.280.0090.03316.26
5.5.270.0070.02216.26
5.5.260.0080.04216.26
5.5.250.0060.04416.15
5.5.240.0050.03815.89
5.5.230.0000.01111.64
5.5.220.0000.01011.64
5.5.210.0110.00011.64
5.5.200.0070.00411.64
5.5.190.0060.00611.64
5.5.180.0000.01211.64
5.5.170.0000.01111.64
5.5.160.0000.01011.64
5.5.150.0000.01311.64
5.5.140.0000.00711.64
5.5.130.0060.00611.64
5.5.120.0110.00011.64
5.5.110.0000.01011.64
5.5.100.0030.00311.64
5.5.90.0060.00611.64
5.5.80.0100.00011.64
5.5.70.0030.00711.64
5.5.60.0070.00311.64
5.5.50.0060.00611.64
5.5.40.0070.00411.64
5.5.30.0040.00711.64
5.5.20.0000.00711.64
5.5.10.0030.00911.64
5.5.00.0090.00311.64
5.4.450.0400.03015.46
5.4.440.0400.02715.61
5.4.430.0380.02815.38
5.4.420.0370.02715.60
5.4.410.0430.02615.46
5.4.400.0380.02515.28
5.4.390.0330.03315.39
5.4.380.0340.02815.22
5.4.370.0350.03215.44
5.4.360.0350.02815.47
5.4.350.0400.02515.46
5.4.340.0350.03315.40
5.4.330.0060.00611.64
5.4.320.0350.03015.21
5.4.310.0370.02815.21
5.4.300.0350.03015.38
5.4.290.0420.02215.38
5.4.280.0370.03015.41
5.4.270.0420.02715.22
5.4.260.0390.02515.35
5.4.250.0370.02715.38
5.4.240.0400.03115.30
5.4.230.0320.03215.21
5.4.220.0380.02515.39
5.4.210.0400.03315.22
5.4.200.0450.03015.45
5.4.190.0430.02915.39
5.4.180.0330.03015.40
5.4.170.0370.03015.21
5.4.160.0350.03315.44
5.4.150.0430.02615.29
5.4.140.0330.03814.09
5.4.130.0310.03613.93
5.4.120.0490.02014.06
5.4.110.0400.03013.92
5.4.100.0370.03214.11
5.4.90.0320.03513.88
5.4.80.0400.02514.07
5.4.70.0180.02314.09
5.4.60.0170.03214.03
5.4.50.0030.03513.92
5.4.40.0000.03814.00
5.4.30.0060.03714.00
5.4.20.0040.03214.02
5.4.10.0070.00411.64
5.4.00.0070.00011.64

preferences:
76.96 ms | 401 KiB | 5 Q