3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('UTC'); $date = new \DateTime(null, new \DateTimeZone('UTC')); $date->setTime(0,0,0); $date->modify('next month'); $date->modify('last day of this month'); $date->setDate(2014, 1, 21); // This should be 21st Jan 2014 echo $date->format('Y-m-d');

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.0150.00318.98
8.3.30.0100.01018.82
8.3.20.0000.00720.40
8.3.10.0060.00323.66
8.3.00.0050.00317.68
8.2.170.0090.00622.96
8.2.160.0100.00320.51
8.2.150.0000.00824.18
8.2.140.0050.00224.66
8.2.130.0040.00426.16
8.2.120.0000.00817.75
8.2.110.0030.00622.43
8.2.100.0090.00317.88
8.2.90.0080.00019.22
8.2.80.0040.00417.97
8.2.70.0000.00817.50
8.2.60.0050.00517.80
8.2.50.0040.00818.07
8.2.40.0050.00321.14
8.2.30.0110.00620.70
8.2.20.0020.00517.90
8.2.10.0040.00418.12
8.2.00.0040.00418.18
8.1.270.0080.01224.04
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0040.00422.54
8.1.230.0090.00317.61
8.1.220.0000.00817.76
8.1.210.0000.00818.77
8.1.200.0090.00017.35
8.1.190.0000.00817.25
8.1.180.0050.00218.10
8.1.170.0050.00318.74
8.1.160.0070.00021.95
8.1.150.0030.00618.90
8.1.140.0030.00617.53
8.1.130.0060.00317.64
8.1.120.0070.00017.61
8.1.110.0030.00617.49
8.1.100.0040.00417.65
8.1.90.0000.00717.48
8.1.80.0040.00417.59
8.1.70.0050.00217.56
8.1.60.0000.00717.66
8.1.50.0040.00417.48
8.1.40.0000.00817.63
8.1.30.0000.00817.63
8.1.20.0040.00417.62
8.1.10.0040.00417.62
8.1.00.0110.00017.61
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0070.00018.45
8.0.270.0070.00017.32
8.0.260.0030.00317.30
8.0.250.0070.00017.18
8.0.240.0030.00317.16
8.0.230.0030.00317.06
8.0.220.0040.00717.02
8.0.210.0040.00417.01
8.0.200.0000.00717.11
8.0.190.0050.00316.99
8.0.180.0070.00017.09
8.0.170.0030.00617.07
8.0.160.0030.00516.93
8.0.150.0000.00716.96
8.0.140.0040.00416.86
8.0.130.0040.00413.41
8.0.120.0070.00016.93
8.0.110.0000.00717.04
8.0.100.0040.00417.06
8.0.90.0040.00417.03
8.0.80.0000.01417.09
8.0.70.0040.00417.09
8.0.60.0040.00416.90
8.0.50.0000.00716.82
8.0.30.0080.01117.27
8.0.20.0080.01017.40
8.0.10.0000.00717.21
8.0.00.0100.00916.87
7.4.330.0000.00515.08
7.4.320.0030.00316.73
7.4.300.0030.00316.58
7.4.290.0040.00416.60
7.4.280.0040.00416.48
7.4.270.0030.00316.60
7.4.260.0050.00516.59
7.4.250.0070.00016.54
7.4.240.0030.00416.58
7.4.230.0000.00716.59
7.4.220.0130.00416.68
7.4.210.0070.01016.68
7.4.200.0030.00316.43
7.4.160.0120.00316.65
7.4.150.0130.00717.40
7.4.140.0100.01017.86
7.4.130.0120.00616.67
7.4.120.0110.00816.67
7.4.110.0090.00916.63
7.4.100.0070.01016.60
7.4.90.0050.01416.52
7.4.80.0030.01619.39
7.4.70.0100.00716.55
7.4.60.0060.00916.57
7.4.50.0000.00416.66
7.4.40.0100.01316.55
7.4.30.0120.00916.51
7.4.00.0110.00515.05
7.3.330.0000.00613.09
7.3.320.0050.00013.09
7.3.310.0030.00316.36
7.3.300.0040.00416.38
7.3.290.0100.00816.32
7.3.280.0080.01016.33
7.3.270.0060.01217.40
7.3.260.0030.01316.62
7.3.240.0140.00816.54
7.3.230.0100.00716.54
7.3.210.0110.00716.53
7.3.200.0130.00316.38
7.3.190.0060.01216.46
7.3.180.0060.00916.48
7.3.170.0030.01516.67
7.3.160.0070.00716.59
7.3.120.0110.00414.88
7.3.110.0150.00014.89
7.3.100.0090.00314.87
7.3.90.0100.00715.05
7.3.80.0060.00614.94
7.3.70.0100.00314.84
7.3.60.0040.01114.84
7.3.50.0000.01414.92
7.3.40.0040.01214.86
7.3.30.0110.00414.84
7.3.20.0030.00716.70
7.3.10.0070.00616.63
7.3.00.0080.00616.69
7.2.330.0070.01016.55
7.2.320.0200.00316.85
7.2.310.0100.00716.82
7.2.300.0060.01116.80
7.2.290.0110.00716.61
7.2.250.0130.00615.35
7.2.240.0120.00615.27
7.2.230.0070.00715.33
7.2.220.0040.01215.14
7.2.210.0030.00714.97
7.2.200.0060.00915.10
7.2.190.0030.01115.14
7.2.180.0070.00714.95
7.2.170.0090.00315.25
7.2.130.0060.00917.08
7.2.120.0030.01216.88
7.2.110.0040.01116.93
7.2.100.0060.00616.95
7.2.90.0030.01017.14
7.2.80.0030.01016.96
7.2.70.0040.00816.93
7.2.60.0050.00917.03
7.2.50.0030.00717.00
7.2.40.0060.00917.10
7.2.30.0070.00717.08
7.2.20.0040.01116.91
7.2.10.0090.00616.86
7.2.00.0030.01318.26
7.1.330.0030.01415.71
7.1.320.0040.01115.90
7.1.310.0000.01315.82
7.1.300.0060.00615.80
7.1.290.0070.00415.91
7.1.280.0100.00315.66
7.1.270.0070.00715.89
7.1.260.0110.00415.89
7.1.250.0080.00415.84
7.1.200.0100.00315.72
7.1.100.0040.00818.29
7.1.70.0000.00717.17
7.1.60.0110.01419.50
7.1.50.0080.00316.69
7.1.00.0030.07722.42
7.0.200.0030.00516.70
7.0.60.0030.05319.93
7.0.50.0070.08317.92
7.0.40.0070.08720.20
7.0.30.0330.04020.00
7.0.20.0200.08320.09
7.0.10.0070.08020.30
7.0.00.0030.04720.16
5.6.280.0000.03720.99
5.6.210.0130.06320.59
5.6.200.0030.05718.17
5.6.190.0100.07320.68
5.6.180.0330.07720.65
5.6.170.0170.06020.50
5.6.160.0070.08320.43
5.6.150.0030.08018.18
5.6.140.0030.04718.07
5.6.130.0070.06318.10
5.6.120.0130.07320.98
5.6.110.0070.04021.13
5.6.100.0070.08021.02
5.6.90.0000.08720.96
5.6.80.0030.04020.46
5.5.350.0270.07320.29
5.5.340.0070.03717.95
5.5.330.0000.05320.18
5.5.320.0270.04320.32
5.5.310.0370.06320.50
5.5.300.0030.05317.94
5.5.290.0070.08017.97
5.5.280.0170.07020.73
5.5.270.0030.05320.75
5.5.260.0130.08020.97
5.5.250.0030.04720.62
5.5.240.0030.08020.25
5.4.450.0370.06019.45
5.4.440.0330.07019.41
5.4.430.0300.07019.49
5.4.420.0370.06319.50
5.4.410.0300.07019.35
5.4.400.0300.05019.20
5.4.390.0270.06718.80
5.4.380.0230.07719.14
5.4.370.0130.08019.19
5.4.360.0270.05319.28
5.4.350.0330.05319.28
5.4.340.0230.06719.28
5.4.320.0100.07019.09
5.4.310.0330.03719.15
5.4.300.0270.07018.93
5.4.290.0230.05019.09
5.4.280.0230.05719.30
5.4.270.0300.05019.28
5.4.260.0300.04718.98
5.4.250.0170.05319.14
5.4.240.0200.05719.11
5.4.230.0200.06319.14
5.4.220.0230.07718.97
5.4.210.0230.06018.80
5.4.200.0230.05318.81
5.4.190.0170.06019.20
5.4.180.0270.04719.18
5.4.170.0170.05319.16
5.4.160.0230.05018.90
5.4.150.0200.05719.09
5.4.140.0330.05716.27
5.4.130.0170.05716.41
5.4.120.0170.06016.49
5.4.110.0230.06316.41
5.4.100.0130.06316.52
5.4.90.0330.04716.51
5.4.80.0170.05316.48
5.4.70.0000.03716.38
5.4.60.0170.07716.47
5.4.50.0270.05016.40
5.4.40.0300.06316.15
5.4.30.0070.05716.27
5.4.20.0000.05716.31
5.4.10.0270.04716.16

preferences:
51.03 ms | 400 KiB | 5 Q