3v4l.org

run code in 500+ PHP versions simultaneously
<?php namespace a\b\c\d; trait foo { public function x() { echo __NAMESPACE__; } } class bar { use foo; } echo (new bar())->x();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oRqvK
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   10     0  E >   DECLARE_CLASS                                                'a%5Cb%5Cc%5Cd%5Cbar'
   14     1        NEW                                                  $0      'a%5Cb%5Cc%5Cd%5Cbar'
          2        DO_FCALL                                          0          
          3        INIT_METHOD_CALL                                             $0, 'x'
          4        DO_FCALL                                          0  $2      
          5        ECHO                                                         $2
          6      > RETURN                                                       1

Class a\b\c\d\foo:
Function x:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oRqvK
function name:  x
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    6     0  E >   ECHO                                                         'a%5Cb%5Cc%5Cd'
    7     1      > RETURN                                                       null

End of function x

End of class a\b\c\d\foo.

Class a\b\c\d\bar: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
173.29 ms | 2069 KiB | 13 Q