3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo { class A { } } namespace Foo\Bar { use Foo\A; class B extends A { } } namespace { use Foo\A; use Foo\Bar\B as BarB; $a = new A(); var_dump($a); $b = new Bar\B(); var_dump($b); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LI1CG
function name:  (null)
number of ops:  13
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   NEW                                              $2      'Foo%5CA'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   18     3        INIT_FCALL                                               'var_dump'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                                 
   19     6        NEW                                              $6      'Bar%5CB'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !1, $6
   20     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                                 
   21    12      > RETURN                                                   1

Class Foo\A: [no user functions]
Class Foo\Bar\B: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.34 ms | 1385 KiB | 15 Q