3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace derp { class Foo {} class_alias('\derp\Foo', 'DerpFoo'); } namespace herp { use DerpFoo; class BetterFoo extends \derp\Foo {} class Derp { public function __construct(DerpFoo $foo) {} } $f = new Derp(new BetterFoo); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ETMN7
function name:  (null)
number of ops:  11
compiled vars:  !0 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_NS_FCALL_BY_NAME                                    'derp%5Cclass_alias'
          1        SEND_VAL_EX                                              '%5Cderp%5CFoo'
          2        SEND_VAL_EX                                              'DerpFoo'
          3        DO_FCALL                                      0          
   23     4        NEW                                              $2      'herp%5CDerp'
          5        NEW                                              $3      'herp%5CBetterFoo'
          6        DO_FCALL                                      0          
          7        SEND_VAR_NO_REF_EX                                       $3
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !0, $2
   24    10      > RETURN                                                   1

Class derp\Foo: [no user functions]
Class herp\BetterFoo: [no user functions]
Class herp\Derp:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ETMN7
function name:  __construct
number of ops:  2
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   RECV                                             !0      
          1      > RETURN                                                   null

End of function __construct

End of class herp\Derp.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.52 ms | 1394 KiB | 15 Q