3v4l.org

run code in 300+ PHP versions simultaneously
<?php $iniDate = date_create('2013/05/01'); $iniDate = new DateTime('2013/05/01'); $iniDate->setTime('23','59','59'); var_dump( date_format( $iniDate, 'Y-m-d H:i:s' ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HBEDG
function name:  (null)
number of ops:  21
compiled vars:  !0 = $iniDate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date_create'
          1        SEND_VAL                                                 '2013%2F05%2F01'
          2        DO_ICALL                                         $1      
          3        ASSIGN                                                   !0, $1
    4     4        NEW                                              $3      'DateTime'
          5        SEND_VAL_EX                                              '2013%2F05%2F01'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !0, $3
    5     8        INIT_METHOD_CALL                                         !0, 'setTime'
          9        SEND_VAL_EX                                              '23'
         10        SEND_VAL_EX                                              '59'
         11        SEND_VAL_EX                                              '59'
         12        DO_FCALL                                      0          
    6    13        INIT_FCALL                                               'var_dump'
         14        INIT_FCALL                                               'date_format'
         15        SEND_VAR                                                 !0
         16        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         17        DO_ICALL                                         $7      
         18        SEND_VAR                                                 $7
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.86 ms | 1386 KiB | 19 Q