3v4l.org

run code in 300+ PHP versions simultaneously
<?php $firstDayNextMonth = date('Y-m-01', strtotime('first day of this month + 2 months', time())); echo $firstDayNextMonth;

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)
7.4.00.0070.01115.27
7.3.120.0100.00814.83
7.3.110.0090.01015.04
7.3.100.0030.01215.16
7.3.90.0060.00615.05
7.3.80.0090.00515.07
7.3.70.0100.00214.87
7.3.60.0020.00914.97
7.3.50.0050.00814.89
7.3.40.0100.00514.71
7.3.30.0100.00314.88
7.3.20.0030.01016.82
7.3.10.0080.00516.90
7.3.00.0080.00816.77
7.2.250.0060.01315.26
7.2.240.0020.01715.33
7.2.230.0050.01015.39
7.2.220.0050.01015.09
7.2.210.0040.01115.05
7.2.200.0040.01015.23
7.2.190.0060.00815.13
7.2.180.0030.01015.13
7.2.170.0080.00615.02
7.2.160.0100.01015.11
7.2.150.0000.01616.73
7.2.140.0030.01417.13
7.2.130.0070.01117.10
7.2.120.0090.00916.89
7.2.110.0030.00716.87
7.2.100.0030.00617.13
7.2.90.0100.00317.24
7.2.80.0100.00717.10
7.2.70.0110.00617.13
7.2.60.0110.00817.23
7.2.50.0160.00017.15
7.2.40.0150.00016.83
7.2.30.0070.00717.04
7.2.20.0060.00617.16
7.2.10.0040.01117.02
7.2.00.0040.01118.15
7.1.330.0070.00915.90
7.1.320.0030.01015.92
7.1.310.0040.01116.20
7.1.300.0030.00815.83
7.1.290.0040.01115.71
7.1.280.0040.00815.77
7.1.270.0090.00215.81
7.1.260.0090.00516.11
7.1.250.0030.01315.74
7.1.200.0030.00915.84
7.1.100.0030.00718.42
7.1.70.0030.00717.05
7.1.60.0070.01719.70
7.1.50.0090.01616.77
7.1.00.0030.07722.57
7.0.200.0650.00614.93
7.0.140.0070.07022.07
7.0.100.0000.05021.82
7.0.90.0070.05321.71
7.0.80.0100.06721.82
7.0.70.0000.07721.73
7.0.60.0030.06321.88
7.0.50.0070.07322.11
7.0.40.0030.08020.18
7.0.30.0170.07020.04
7.0.20.0030.08320.17
7.0.10.0100.05020.07
7.0.00.0100.07320.02
5.6.280.0030.07321.04
5.6.250.0070.08020.74
5.6.240.0070.07720.59
5.6.230.0030.08020.55
5.6.220.0070.05020.57
5.6.210.0030.08320.66
5.6.200.0000.04721.14
5.6.190.0100.06721.02
5.6.180.0070.08321.05
5.6.170.0130.07721.13
5.6.160.0000.08321.05
5.6.150.0070.04721.03
5.6.140.0030.08021.03
5.6.130.0000.05320.99
5.6.120.0030.08020.94
5.6.110.0030.04321.00
5.6.100.0030.04720.93
5.6.90.0000.06321.00
5.6.80.0000.04320.48
5.6.70.0000.04020.50
5.6.60.0030.04020.53
5.6.50.0030.04020.48
5.6.40.0030.04720.46
5.6.30.0000.03720.52
5.6.20.0030.04020.36
5.6.10.0030.03720.43
5.6.00.0070.03320.35
5.5.380.0100.07020.41
5.5.370.0030.07720.56
5.5.360.0000.08020.40
5.5.350.0100.08020.44
5.5.340.0070.04720.92
5.5.330.0030.08720.62
5.5.320.0100.07720.79
5.5.310.0070.04320.85
5.5.300.0030.07020.91
5.5.290.0100.05720.86
5.5.280.0070.07720.72
5.5.270.0070.04320.88
5.5.260.0030.04320.71
5.5.250.0030.04320.67
5.5.240.0030.04020.18
5.5.230.0030.05020.13
5.5.220.0030.03320.20
5.5.210.0000.04020.23
5.5.200.0070.04020.24
5.5.190.0000.04020.07
5.5.180.0030.06320.20
5.5.160.0070.06320.12
5.5.150.0130.03320.13
5.5.140.0000.07719.96
5.5.130.0000.03720.08
5.5.120.0000.03720.22
5.5.110.0000.07020.21
5.5.100.0000.04020.15
5.5.90.0000.08019.93
5.5.80.0000.03720.07
5.5.70.0070.03020.14
5.5.60.0030.03720.13
5.5.50.0070.03320.05
5.5.40.0100.05720.02
5.5.30.0000.03720.10
5.5.20.0030.03720.00
5.5.10.0030.03720.12
5.5.00.0070.07019.99
5.4.450.0100.07719.39
5.4.440.0130.07719.44
5.4.430.0100.06019.46
5.4.420.0100.07019.41
5.4.410.0000.04019.24
5.4.400.0000.04018.95
5.4.390.0070.03318.96
5.4.380.0000.04018.96
5.4.370.0070.05719.22
5.4.360.0000.06318.90
5.4.350.0070.03718.90
5.4.340.0000.05319.08
5.4.320.0000.03318.96
5.4.310.0000.04018.96
5.4.300.0030.03718.98
5.4.290.0000.04318.99
5.4.280.0000.04018.96
5.4.270.0000.07019.11
5.4.260.0000.04018.80
5.4.250.0070.06018.98
5.4.240.0100.03718.80
5.4.230.0000.03719.03
5.4.220.0000.04019.02
5.4.210.0070.03019.04
5.4.200.0000.03319.19
5.4.190.0000.03318.98
5.4.180.0030.04019.11
5.4.170.0000.04019.09
5.4.160.0000.04019.09
5.4.150.0000.03719.09
5.4.140.0070.03016.28
5.4.130.0030.03016.39
5.4.120.0000.03316.27
5.4.110.0000.03716.36
5.4.100.0000.03016.43
5.4.90.0000.04016.39
5.4.80.0000.06716.39
5.4.70.0030.03716.38
5.4.60.0070.03016.35
5.4.50.0100.02316.37
5.4.40.0030.06316.39
5.4.30.0030.07316.33
5.4.20.0030.05716.34
5.4.10.0000.07716.31
5.4.00.0070.05715.67
5.3.290.0030.04014.64
5.3.280.0030.03314.45
5.3.270.0030.03014.58
5.3.260.0030.04314.55
5.3.250.0000.03714.45
5.3.240.0000.03714.56
5.3.230.0000.03714.57
5.3.220.0030.03314.40
5.3.210.0000.03714.42
5.3.200.0000.04014.54
5.3.190.0000.03314.55
5.3.180.0000.03714.52
5.3.170.0000.06314.53
5.3.160.0000.03714.52
5.3.150.0000.03714.39
5.3.140.0030.05014.41
5.3.130.0030.06714.48
5.3.120.0030.07714.54
5.3.110.0000.07014.52
5.3.100.0000.04313.89
5.3.90.0030.06714.00
5.3.80.0000.07013.98
5.3.70.0030.07013.95
5.3.60.0070.05713.86
5.3.50.0070.06013.94
5.3.40.0000.05713.70
5.3.30.0070.03713.66
5.3.20.0000.07313.66
5.3.10.0000.07313.58
5.3.00.0030.04013.48
5.2.170.0130.04311.16
5.2.160.0000.05711.16
5.2.150.0030.03311.16
5.2.140.0000.04711.16
5.2.130.0030.03011.16
5.2.120.0030.05711.16
5.2.110.0070.05711.16
5.2.100.0000.07011.16
5.2.90.0130.03711.16
5.2.80.0030.05711.16
5.2.70.0030.04311.16
5.2.60.0070.05711.16
5.2.50.0030.06311.16
5.2.40.0030.04311.16
5.2.30.0030.03711.16
5.2.20.0030.05711.16
5.2.10.0000.03311.16
5.2.00.0070.03011.16
5.1.60.0030.05311.16
5.1.50.0030.03311.16
5.1.40.0030.02311.16
5.1.30.0000.05711.16
5.1.20.0070.04711.16
5.1.10.0000.03011.16
5.1.00.0070.05011.16
5.0.50.0000.04011.16
5.0.40.0070.02711.16
5.0.30.0000.05711.16
5.0.20.0000.04711.16
5.0.10.0000.03311.16
5.0.00.0000.04711.16
4.4.90.0000.02711.16
4.4.80.0030.02311.16
4.4.70.0030.03311.16
4.4.60.0070.02311.16
4.4.50.0030.03711.16
4.4.40.0000.04311.16
4.4.30.0000.02011.16
4.4.20.0030.02711.16
4.4.10.0030.02711.16
4.4.00.0030.04311.16
4.3.110.0000.03711.16
4.3.100.0000.03311.16
4.3.90.0000.03311.16
4.3.80.0030.05311.16
4.3.70.0000.02311.16
4.3.60.0030.02311.16
4.3.50.0000.03311.16
4.3.40.0070.05011.16
4.3.30.0030.02311.16
4.3.20.0030.03311.16
4.3.10.0030.02711.16
4.3.00.0030.03711.16

preferences:
35.75 ms | 401 KiB | 5 Q