3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Child { function Child() { $this->version = '3.0.2'; $this->tpl_base = Array( 'a', 'b' ); $this->tpl_count = 0; $this->ignore_stack = Array( false ); var_dump(__CLASS__); } } class Example extends Child { function Example() { var_dump(__CLASS__, parent::Child()); } } var_dump(new Example);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fntpr
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/fntpr
function name:  Child
number of ops:  12
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN_OBJ                                               'version'
          1        OP_DATA                                                  '3.0.2'
    7     2        ASSIGN_OBJ                                               'tpl_base'
          3        OP_DATA                                                  <array>
    8     4        ASSIGN_OBJ                                               'tpl_count'
          5        OP_DATA                                                  0
    9     6        ASSIGN_OBJ                                               'ignore_stack'
          7        OP_DATA                                                  <array>
   10     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAL                                                 'Child'
         10        DO_ICALL                                                 
   11    11      > 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/fntpr
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'
          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/fntpr
function name:  Child
number of ops:  12
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN_OBJ                                               'version'
          1        OP_DATA                                                  '3.0.2'
    7     2        ASSIGN_OBJ                                               'tpl_base'
          3        OP_DATA                                                  <array>
    8     4        ASSIGN_OBJ                                               'tpl_count'
          5        OP_DATA                                                  0
    9     6        ASSIGN_OBJ                                               'ignore_stack'
          7        OP_DATA                                                  <array>
   10     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAL                                                 'Child'
         10        DO_ICALL                                                 
   11    11      > RETURN                                                   null

End of function child

End of class Example.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.28 ms | 1400 KiB | 15 Q