3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new DateTime('first day of previous month 00:00:00', new DateTimeZone('UTC')); var_dump($date->format('Y-m-d H:i:s')); // string(19) "2013-11-01 00:00:00" $date = new DateTime('first day of previous month 00:00:00', new DateTimeZone('Europe/Amsterdam')); var_dump($date->format('Y-m-d H:i:s')); // string(19) "2013-11-01 00:00:00"

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.0080.00818.31
8.3.50.0190.00021.14
8.3.40.0070.00718.76
8.3.30.0140.00020.34
8.3.20.0070.00020.39
8.3.10.0040.00420.92
8.3.00.0080.00022.40
8.2.180.0150.00616.75
8.2.170.0000.01422.96
8.2.160.0100.00322.20
8.2.150.0090.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00821.00
8.2.110.0070.00321.06
8.2.100.0040.00817.91
8.2.90.0090.00018.34
8.2.80.0000.00818.34
8.2.70.0050.00317.93
8.2.60.0030.00617.62
8.2.50.0050.00418.07
8.2.40.0000.00818.15
8.2.30.0040.00419.60
8.2.20.0070.00017.96
8.2.10.0020.00517.79
8.2.00.0000.00718.01
8.1.280.0160.00325.92
8.1.270.0000.00823.99
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0000.00922.77
8.1.230.0080.00422.75
8.1.220.0080.00017.79
8.1.210.0030.00518.77
8.1.200.0000.00817.61
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0000.00818.36
8.1.160.0000.00719.01
8.1.150.0030.00518.88
8.1.140.0050.00317.50
8.1.130.0040.00417.96
8.1.120.0030.00317.57
8.1.110.0050.00317.64
8.1.100.0000.00717.64
8.1.90.0040.00417.69
8.1.80.0070.00017.49
8.1.70.0000.00717.62
8.1.60.0040.00417.77
8.1.50.0040.00417.73
8.1.40.0000.00917.54
8.1.30.0000.00717.73
8.1.20.0040.00417.68
8.1.10.0060.00317.63
8.1.00.0070.00017.75
8.0.300.0040.00419.98
8.0.290.0000.00716.88
8.0.280.0030.00518.54
8.0.270.0030.00317.21
8.0.260.0040.00417.02
8.0.250.0030.00317.13
8.0.240.0040.00417.15
8.0.230.0030.00317.12
8.0.220.0000.00717.07
8.0.210.0030.00317.00
8.0.200.0000.00717.04
8.0.190.0060.00317.09
8.0.180.0040.00417.18
8.0.170.0030.00517.09
8.0.160.0040.00417.00
8.0.150.0040.00417.00
8.0.140.0030.00617.02
8.0.130.0000.00613.48
8.0.120.0040.00417.13
8.0.110.0030.00517.17
8.0.100.0000.00717.03
8.0.90.0070.00016.96
8.0.80.0000.01517.13
8.0.70.0000.00716.96
8.0.60.0000.00716.93
8.0.50.0000.00716.92
8.0.30.0090.01117.33
8.0.20.0140.00817.40
8.0.10.0030.00517.11
8.0.00.0140.00716.98
7.4.330.0000.00516.98
7.4.320.0050.00216.70
7.4.300.0000.00616.57
7.4.290.0070.00016.66
7.4.280.0000.00716.65
7.4.270.0000.00716.66
7.4.260.0050.00013.40
7.4.250.0000.00716.62
7.4.240.0040.00316.63
7.4.230.0070.00016.70
7.4.220.0060.01216.54
7.4.210.0090.00916.74
7.4.200.0040.00416.56
7.4.190.0040.00416.79
7.4.160.0110.00516.54
7.4.150.0070.01017.40
7.4.140.0140.00317.86
7.4.130.0120.00416.62
7.4.120.0100.00716.65
7.4.110.0060.01616.33
7.4.100.0110.00616.74
7.4.90.0080.01516.83
7.4.80.0120.00919.39
7.4.70.0080.00916.59
7.4.60.0070.01116.62
7.4.50.0000.00516.35
7.4.40.0070.00722.77
7.4.30.0100.00716.72
7.4.00.0030.01415.14
7.3.330.0000.00513.20
7.3.320.0020.00213.12
7.3.310.0070.00016.24
7.3.300.0050.00216.29
7.3.290.0160.01316.39
7.3.280.0070.01016.39
7.3.270.0080.00917.40
7.3.260.0090.00918.24
7.3.250.0120.00616.45
7.3.240.0120.00616.66
7.3.230.0110.00616.50
7.3.210.0090.00916.43
7.3.200.0070.01319.39
7.3.190.0060.01016.72
7.3.180.0070.00716.31
7.3.170.0130.00316.49
7.3.160.0170.00016.69
7.3.120.0030.01215.00
7.3.110.0110.00715.13
7.3.100.0090.00614.97
7.3.90.0110.00415.05
7.3.80.0080.00514.91
7.3.70.0030.01015.02
7.3.60.0110.00414.68
7.3.50.0120.00314.91
7.3.40.0080.00614.92
7.3.30.0040.01114.88
7.3.20.0070.00716.87
7.3.10.0110.00616.71
7.3.00.0050.01116.68
7.2.330.0080.01116.77
7.2.320.0030.01416.59
7.2.310.0030.01316.77
7.2.300.0100.01316.88
7.2.290.0150.00316.74
7.2.250.0170.00315.15
7.2.240.0060.01314.96
7.2.230.0000.01915.01
7.2.220.0030.00615.36
7.2.210.0000.01515.16
7.2.200.0030.00715.23
7.2.190.0040.01115.33
7.2.180.0110.00415.05
7.2.170.0030.01014.78
7.2.130.0070.01016.95
7.2.120.0050.00816.86
7.2.110.0060.00916.81
7.2.100.0070.01017.09
7.2.90.0030.01816.96
7.2.80.0070.01016.85
7.2.70.0130.01016.95
7.2.60.0100.01016.86
7.2.50.0000.01916.84
7.2.40.0070.00717.20
7.2.30.0030.01316.82
7.2.20.0090.00616.93
7.2.10.0070.01317.01
7.2.00.0070.00717.18
7.1.330.0040.01115.93
7.1.320.0140.00016.08
7.1.310.0000.01115.91
7.1.300.0090.00615.93
7.1.290.0040.00815.73
7.1.280.0000.01515.77
7.1.270.0060.00615.84
7.1.260.0030.01015.60
7.1.250.0080.00815.73
7.1.70.0000.00817.34
7.1.60.0140.01019.17
7.1.50.0160.00616.84
7.1.00.0030.03322.31
7.0.200.0170.00314.88
7.0.140.0070.07322.10
7.0.100.0100.05719.95
7.0.90.0170.07719.88
7.0.80.0030.07019.93
7.0.70.0270.03019.93
7.0.60.0130.04019.89
7.0.50.0070.04020.33
7.0.40.0070.04720.18
7.0.30.0030.04320.14
7.0.20.0030.04020.17
7.0.10.0100.07720.12
7.0.00.0100.07320.07
5.6.280.0000.07721.04
5.6.250.0100.08320.53
5.6.240.0130.07720.69
5.6.230.0070.05020.74
5.6.220.0070.04020.66
5.6.210.0070.04320.58
5.6.200.0070.04021.11
5.6.190.0070.04020.96
5.6.180.0070.03721.11
5.6.170.0100.04021.00
5.6.160.0130.07720.96
5.6.150.0000.07721.17
5.6.140.0100.04021.05
5.6.130.0070.04320.99
5.6.120.0070.04721.05
5.6.110.0030.05321.12
5.6.100.0070.04021.11
5.6.90.0130.04320.92
5.6.80.0000.04720.55
5.6.70.0070.03720.42
5.6.60.0070.03720.31
5.6.50.0070.05320.52
5.6.40.0130.03020.45
5.6.30.0030.03320.40
5.6.20.0070.03720.42
5.6.10.0000.03720.29
5.6.00.0000.04320.38
5.5.380.0100.04320.35
5.5.370.0130.03720.51
5.5.360.0030.04320.33
5.5.350.0070.04020.45
5.5.340.0000.04720.88
5.5.330.0030.04320.77
5.5.320.0030.07720.79
5.5.310.0070.05320.91
5.5.300.0070.03720.80
5.5.290.0070.04720.82
5.5.280.0000.04720.80
5.5.270.0070.03720.74
5.5.260.0070.04020.85
5.5.250.0030.04020.67
5.5.240.0030.03320.28
5.5.230.0070.05320.29
5.5.220.0070.03720.27
5.5.210.0070.03720.27
5.5.200.0170.02720.09
5.5.190.0000.04320.27
5.5.180.0130.03720.15
5.5.160.0030.04020.07
5.5.150.0070.03720.23
5.5.140.0030.04020.25
5.5.130.0030.04320.20
5.5.120.0030.05020.14
5.5.110.0170.04020.21
5.5.100.0100.03720.17
5.5.90.0070.07320.00
5.5.80.0100.07720.09
5.5.70.0070.07720.07
5.5.60.0070.07720.08
5.5.50.0100.06720.09
5.5.40.0030.09720.05
5.5.30.0170.07020.02
5.5.20.0270.06020.10
5.5.10.0030.08320.03
5.5.00.0000.04319.92
5.4.450.0030.04019.45
5.4.440.0030.04019.35
5.4.430.0030.07319.30
5.4.420.0070.04019.11
5.4.410.0130.03319.22
5.4.400.0000.04018.95
5.4.390.0070.03718.81
5.4.380.0030.03719.23
5.4.370.0070.03318.79
5.4.360.0030.04019.05
5.4.350.0100.03018.77
5.4.340.0030.03319.02
5.4.320.0100.03019.23
5.4.310.0030.04019.03
5.4.300.0030.04019.05
5.4.290.0030.03719.10
5.4.280.0070.04018.97
5.4.270.0070.07318.95
5.4.260.0030.04718.97
5.4.250.0030.08018.95
5.4.240.0100.03018.99
5.4.230.0070.07319.13
5.4.220.0100.03319.16
5.4.210.0070.03318.89
5.4.200.0070.07319.05
5.4.190.0070.06318.80
5.4.180.0070.04318.89
5.4.170.0070.04019.13
5.4.160.0030.08319.02
5.4.150.0100.06719.20
5.4.140.0100.06716.36
5.4.130.0070.07316.17
5.4.120.0100.03716.41
5.4.110.0030.05016.36
5.4.100.0030.05316.39
5.4.90.0070.07016.31
5.4.80.0100.03016.37
5.4.70.0000.04016.25
5.4.60.0100.04016.19
5.4.50.0130.04716.23
5.4.40.0070.05016.23
5.4.30.0100.03016.18
5.4.20.0130.04716.43
5.4.10.0070.05016.23
5.4.00.0170.05315.82
5.3.290.0000.04314.62
5.3.280.0100.07014.59
5.3.270.0070.07314.55
5.3.260.0070.07014.43
5.3.250.0100.07314.56
5.3.240.0030.08314.57
5.3.230.0070.07314.60
5.3.220.0070.06714.54
5.3.210.0030.04314.42
5.3.200.0130.06014.41
5.3.190.0130.04314.54
5.3.180.0000.04014.42
5.3.170.0030.04014.57
5.3.160.0030.06314.52
5.3.150.0130.03714.38
5.3.140.0030.06714.51
5.3.130.0070.04314.54
5.3.120.0030.06014.48
5.3.110.0130.07014.54
5.3.100.0070.07713.95
5.3.90.0000.08313.97
5.3.80.0070.07714.00
5.3.70.0070.07313.95
5.3.60.0130.03713.86
5.3.50.0030.04713.79
5.3.40.0130.07013.90
5.3.30.0030.07313.76
5.3.20.0000.05313.55
5.3.10.0070.07013.51
5.3.00.0070.06313.39
5.2.170.0030.05713.00
5.2.160.0070.06313.00
5.2.150.0000.04013.00
5.2.140.0030.05713.00
5.2.130.0070.06313.00
5.2.120.0030.06013.00
5.2.110.0070.03313.00
5.2.100.0030.03013.00
5.2.90.0030.04713.00
5.2.80.0100.06013.00
5.2.70.0100.05013.00
5.2.60.0070.03313.00
5.2.50.0100.06013.00
5.2.40.0000.06013.00
5.2.30.0030.06713.00
5.2.20.0000.05713.00
5.2.10.0070.04713.00
5.2.00.0070.06313.00
5.1.60.0030.04713.00
5.1.50.0030.04313.00
5.1.40.0070.03713.00
5.1.30.0000.06313.00
5.1.20.0100.05313.00
5.1.10.0100.05313.00
5.1.00.0030.03013.00
5.0.50.0000.03713.00
5.0.40.0070.04313.00
5.0.30.0070.06313.00
5.0.20.0000.02313.00
5.0.10.0000.04713.00
5.0.00.0030.05313.00
4.4.90.0000.03313.00
4.4.80.0070.03013.00
4.4.70.0030.01713.00
4.4.60.0000.03313.00
4.4.50.0070.03313.00
4.4.40.0070.05013.00
4.4.30.0030.03713.00
4.4.20.0070.03313.00
4.4.10.0070.03313.00
4.4.00.0030.04313.00
4.3.110.0000.02013.00
4.3.100.0030.01313.00
4.3.90.0030.01313.00
4.3.80.0030.02313.00
4.3.70.0030.02313.00
4.3.60.0030.01713.00
4.3.50.0000.02713.00
4.3.40.0000.05313.00
4.3.30.0030.03313.00
4.3.20.0000.03713.00
4.3.10.0000.02713.00
4.3.00.0000.02713.00

preferences:
70.02 ms | 401 KiB | 5 Q