3v4l.org

run code in 300+ PHP versions simultaneously
<?php class My_DateTime extends DateTime { public static function createFromFormat($format, $time, DateTimeZone $timezone = null) { return parent::createFromFormat($format, $time, $timezone); } } var_dump(DateTime::createFromFormat('j-M-Y', '15-Feb-2009', new stdClass));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cYOGL
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_STATIC_METHOD_CALL                                  'DateTime', 'createFromFormat'
          2        SEND_VAL                                                 'j-M-Y'
          3        SEND_VAL                                                 '15-Feb-2009'
          4        NEW                                              $0      'stdClass'
          5        DO_FCALL                                      0          
          6        SEND_VAR                                                 $0
          7        DO_FCALL                                      0  $2      
          8        SEND_VAR                                                 $2
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Class My_DateTime:
Function createfromformat:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cYOGL
function name:  createFromFormat
number of ops:  10
compiled vars:  !0 = $format, !1 = $time, !2 = $timezone
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV_INIT                                        !2      null
    7     3        INIT_STATIC_METHOD_CALL                                  'createFromFormat'
          4        SEND_VAR_EX                                              !0
          5        SEND_VAR_EX                                              !1
          6        SEND_VAR_EX                                              !2
          7        DO_FCALL                                      0  $3      
          8      > RETURN                                                   $3
    8     9*     > RETURN                                                   null

End of function createfromformat

End of class My_DateTime.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.87 ms | 1395 KiB | 15 Q