3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace b { class my_class{ function test() { echo 'here'; } } } namespace a { use b as c; // FQN (new \b\my_class())->test(); // Aliased (new c\my_class())->test(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/79Dmg
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   NEW                                              $0      'b%5Cmy_class'
          1        DO_FCALL                                      0          
          2        INIT_METHOD_CALL                                         $0, 'test'
          3        DO_FCALL                                      0          
   16     4        NEW                                              $3      'b%5Cmy_class'
          5        DO_FCALL                                      0          
          6        INIT_METHOD_CALL                                         $3, 'test'
          7        DO_FCALL                                      0          
   17     8      > RETURN                                                   1

Class b\my_class:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/79Dmg
function name:  test
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ECHO                                                     'here'
    7     1      > RETURN                                                   null

End of function test

End of class b\my_class.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.38 ms | 1403 KiB | 13 Q