3v4l.org

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

Class Time:
Function createfromformat:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4tnZa
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 Time.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.33 ms | 1395 KiB | 15 Q