3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Moo; 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/VZUhG
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   NEW                                              $0      'Moo%5CExample'
          1        DO_FCALL                                      0          
          2        FREE                                                     $0
          3      > RETURN                                                   1

Class Moo\Child:
Function child:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VZUhG
function name:  Child
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_NS_FCALL_BY_NAME                                    'Moo%5Cvar_dump'
          1        SEND_VAL_EX                                              'Moo%5CChild'
          2        DO_FCALL                                      0          
    8     3      > RETURN                                                   null

End of function child

End of class Moo\Child.

Class Moo\Example:
Function example:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VZUhG
function name:  Example
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_NS_FCALL_BY_NAME                                    'Moo%5Cvar_dump'
          1        SEND_VAL_EX                                              'Moo%5CExample'
          2        INIT_STATIC_METHOD_CALL                                  'Moo%5CChild', 'Child'
          3        DO_FCALL                                      0  $0      
          4        SEND_VAR_NO_REF_EX                                       $0
          5        DO_FCALL                                      0          
   14     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/VZUhG
function name:  Child
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_NS_FCALL_BY_NAME                                    'Moo%5Cvar_dump'
          1        SEND_VAL_EX                                              'Moo%5CChild'
          2        DO_FCALL                                      0          
    8     3      > RETURN                                                   null

End of function child

End of class Moo\Example.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.99 ms | 1396 KiB | 15 Q