3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Child { function Child() { $this->version = '3.0.2'; $this->tpl_base = Array( $tpl_file, $type ); $this->tpl_count = 0; $this->ignore_stack = Array( false ); var_dump(__CLASS__); } } class Example extends Child { function Example() { var_dump(__CLASS__, Child::Child()); } } var_dump(new Example);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SIQMd
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   INIT_FCALL                                               'var_dump'
          1        NEW                                              $0      'Example'
          2        DO_FCALL                                      0          
          3        SEND_VAR                                                 $0
          4        DO_ICALL                                                 
          5      > RETURN                                                   1

Class Child:
Function child:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SIQMd
function name:  Child
number of ops:  14
compiled vars:  !0 = $tpl_file, !1 = $type
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN_OBJ                                               'version'
          1        OP_DATA                                                  '3.0.2'
    7     2        INIT_ARRAY                                       ~4      !0
          3        ADD_ARRAY_ELEMENT                                ~4      !1
          4        ASSIGN_OBJ                                               'tpl_base'
          5        OP_DATA                                                  ~4
    8     6        ASSIGN_OBJ                                               'tpl_count'
          7        OP_DATA                                                  0
    9     8        ASSIGN_OBJ                                               'ignore_stack'
          9        OP_DATA                                                  <array>
   10    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAL                                                 'Child'
         12        DO_ICALL                                                 
   11    13      > RETURN                                                   null

End of function child

End of class Child.

Class Example:
Function example:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SIQMd
function name:  Example
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 'Example'
          2        INIT_STATIC_METHOD_CALL                                  'Child', 'Child'
          3        DO_FCALL                                      0  $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
   17     6      > RETURN                                                   null

End of function example

Function child:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SIQMd
function name:  Child
number of ops:  14
compiled vars:  !0 = $tpl_file, !1 = $type
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN_OBJ                                               'version'
          1        OP_DATA                                                  '3.0.2'
    7     2        INIT_ARRAY                                       ~4      !0
          3        ADD_ARRAY_ELEMENT                                ~4      !1
          4        ASSIGN_OBJ                                               'tpl_base'
          5        OP_DATA                                                  ~4
    8     6        ASSIGN_OBJ                                               'tpl_count'
          7        OP_DATA                                                  0
    9     8        ASSIGN_OBJ                                               'ignore_stack'
          9        OP_DATA                                                  <array>
   10    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAL                                                 'Child'
         12        DO_ICALL                                                 
   11    13      > RETURN                                                   null

End of function child

End of class Example.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.4 ms | 1400 KiB | 15 Q