3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace foo; function bitch(){ return 1; } namespace bar; function bitch(){return 2;} namespace my; use bar as doo; echo doo\bitch(); $a = new stdclass(); var_dump($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CVYsS
function name:  (null)
number of ops:  10
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   INIT_FCALL                                               'bar%5Cbitch'
          1        DO_FCALL                                      0  $1      
          2        ECHO                                                     $1
   17     3        NEW                                              $2      'my%5Cstdclass'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $2
   18     6        INIT_NS_FCALL_BY_NAME                                    'my%5Cvar_dump'
          7        SEND_VAR_EX                                              !0
          8        DO_FCALL                                      0          
          9      > RETURN                                                   1

Function foo%5Cbitch:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CVYsS
function name:  foo\bitch
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E > > RETURN                                                   1
    6     1*     > RETURN                                                   null

End of function foo%5Cbitch

Function bar%5Cbitch:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CVYsS
function name:  bar\bitch
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E > > RETURN                                                   2
          1*     > RETURN                                                   null

End of function bar%5Cbitch

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.63 ms | 1397 KiB | 16 Q