3v4l.org

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

Class Foo\A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155 ms | 1394 KiB | 15 Q