3v4l.org

run code in 300+ PHP versions simultaneously
<?php $currentDate = date('Y-m-d'); // 使用strtotime计算下个月一号 $nextMonthFirstDay = date('Y-m-d', strtotime('first day of next month', strtotime($currentDate))); echo $nextMonthFirstDay; // 输出格式为 YYYY-MM-DD

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.4.20.0110.00821.30
8.4.10.0040.00419.65
8.3.150.0040.01417.18
8.3.140.0000.00816.69
8.3.130.0310.00916.55
8.3.120.0380.00416.85
8.3.110.0310.01016.71
8.3.100.0380.01316.29
8.3.90.0330.01016.38
8.3.80.0300.01116.34
8.3.70.0250.00416.48
8.3.60.0230.01716.23
8.3.50.0390.00716.19
8.3.40.0340.00617.56
8.3.30.0270.00917.70
8.3.20.0300.00317.20
8.3.10.0320.00617.46
8.3.00.0150.00917.81
8.2.270.0070.01116.89
8.2.260.0070.01117.41
8.2.250.0110.01116.90
8.2.240.0320.00916.60
8.2.230.0320.00616.38
8.2.220.0200.00816.77
8.2.210.0140.00416.54
8.2.200.0180.00016.52
8.2.190.0160.00616.56
8.2.180.0150.01116.18
8.2.170.0290.01217.58
8.2.160.0270.01017.50
8.2.150.0230.00617.60
8.2.140.0380.00317.45
8.2.130.0320.01017.43
8.2.120.0310.00617.39
8.2.110.0310.00717.40
8.2.100.0330.00417.32
8.2.90.0300.00817.72
8.2.80.0300.01017.59
8.2.70.0320.00817.34
8.2.60.0390.00017.24
8.2.50.0530.00417.59
8.2.40.0200.02017.83
8.2.30.0340.00317.53
8.2.20.0290.00917.60
8.2.10.0300.00717.65
8.2.00.0330.00417.63
8.1.310.0080.00016.71
8.1.300.0320.00716.18
8.1.290.0320.00616.26
8.1.280.0300.00816.18
8.1.270.0430.00017.50
8.1.260.0360.00717.33
8.1.250.0370.00417.64
8.1.240.0330.01417.36
8.1.230.0200.02017.34
8.1.220.0410.00017.20
8.1.210.0290.01017.29
8.1.200.0270.01017.49
8.1.190.0300.00717.20
8.1.180.0320.00717.38
8.1.170.0250.01117.46
8.1.160.0250.01117.43
8.1.150.0230.01317.23
8.1.140.0290.00417.23
8.1.130.0300.00617.50
8.1.120.0290.00817.35
8.1.110.0280.00617.34
8.1.100.0170.01417.51
8.1.90.0300.00717.55
8.1.80.0270.00917.54
8.1.70.0360.00417.57
8.1.60.0330.01117.14
8.1.50.0320.01017.32
8.1.40.0310.00817.43
8.1.30.0310.00917.68
8.1.20.0310.00817.57
8.1.10.0360.00417.29
8.1.00.0370.00417.45
5.2.170.0120.00616.18

preferences:
31.16 ms | 403 KiB | 5 Q