3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('Asia/Singapore'); $end_date = new DateTime('today'); $end_date->modify('first day of next month'); echo $end_date->format('Y-m-d H:i:s');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5tsMj
function name:  (null)
number of ops:  15
compiled vars:  !0 = $end_date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'Asia%2FSingapore'
          2        DO_ICALL                                                 
    4     3        NEW                                              $2      'DateTime'
          4        SEND_VAL_EX                                              'today'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !0, $2
    5     7        INIT_METHOD_CALL                                         !0, 'modify'
          8        SEND_VAL_EX                                              'first+day+of+next+month'
          9        DO_FCALL                                      0          
    7    10        INIT_METHOD_CALL                                         !0, 'format'
         11        SEND_VAL_EX                                              'Y-m-d+H%3Ai%3As'
         12        DO_FCALL                                      0  $6      
         13        ECHO                                                     $6
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.65 ms | 1394 KiB | 15 Q