3v4l.org

run code in 300+ PHP versions simultaneously
<?php //namespace a; //define('t', true, true); //define('a\\true', false, t); //define('a\\false', t, t); namespace Api\Something { class Foo {} } namespace Api\SomethingElse { define('Api\\SomethingElse\\Private', 'Api\\Something', true); class Bar{ public function run() { //$obj = new Private; var_dump(Api\SomethingElse\Private, $obj); } } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TXj0H
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   INIT_NS_FCALL_BY_NAME                                    'Api%5CSomethingElse%5Cdefine'
          1        SEND_VAL_EX                                              'Api%5CSomethingElse%5CPrivate'
          2        SEND_VAL_EX                                              'Api%5CSomething'
          3        SEND_VAL_EX                                              <true>
          4        DO_FCALL                                      0          
   25     5      > RETURN                                                   1

Class Api\Something\Foo: [no user functions]
Class Api\SomethingElse\Bar:
Function run:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TXj0H
function name:  run
number of ops:  6
compiled vars:  !0 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   INIT_NS_FCALL_BY_NAME                                    'Api%5CSomethingElse%5Cvar_dump'
          1        FETCH_CONSTANT                                   ~1      'Api%5CSomethingElse%5CApi%5CSomethingElse%5CPrivate'
          2        SEND_VAL_EX                                              ~1
          3        SEND_VAR_EX                                              !0
          4        DO_FCALL                                      0          
   22     5      > RETURN                                                   null

End of function run

End of class Api\SomethingElse\Bar.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.89 ms | 1394 KiB | 17 Q