3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Child { function Child() { var_dump(__CLASS__); } } class Example extends Child{ function Example() { var_dump(__CLASS__, Child::Child()); } } new Example;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PYKnP
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   NEW                                              $0      'Example'
          1        DO_FCALL                                      0          
          2        FREE                                                     $0
          3      > RETURN                                                   1

Class Child:
Function child:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PYKnP
function name:  Child
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 'Child'
          2        DO_ICALL                                                 
    6     3      > 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/PYKnP
function name:  Example
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     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                                                 
   12     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/PYKnP
function name:  Child
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 'Child'
          2        DO_ICALL                                                 
    6     3      > RETURN                                                   null

End of function child

End of class Example.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.77 ms | 1396 KiB | 15 Q