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'); $sumend_timestamp = $end_date->getTimestamp(); echo date('Y-m-d H:i:s', $sumend_timestamp);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0M220
function name:  (null)
number of ops:  19
compiled vars:  !0 = $end_date, !1 = $sumend_timestamp
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                                              $3      'DateTime'
          4        SEND_VAL_EX                                              'today'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !0, $3
    5     7        INIT_METHOD_CALL                                         !0, 'modify'
          8        SEND_VAL_EX                                              'first+day+of+next+month'
          9        DO_FCALL                                      0          
    6    10        INIT_METHOD_CALL                                         !0, 'getTimestamp'
         11        DO_FCALL                                      0  $7      
         12        ASSIGN                                                   !1, $7
    8    13        INIT_FCALL                                               'date'
         14        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                         $9      
         17        ECHO                                                     $9
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.52 ms | 1394 KiB | 17 Q