3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo {} class Bar extends Foo {} class FooCreator { public function create(FooAlias $foo) { } } class_alias('Foo', 'FooAlias'); $foo = new Bar; $creator = new FooCreator(); $creator->create($foo); hint_for_alias($foo);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/poTKh
function name:  (null)
number of ops:  17
compiled vars:  !0 = $foo, !1 = $creator
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   INIT_FCALL                                               'class_alias'
          1        SEND_VAL                                                 'Foo'
          2        SEND_VAL                                                 'FooAlias'
          3        DO_ICALL                                                 
   18     4        NEW                                              $3      'Bar'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !0, $3
   19     7        NEW                                              $6      'FooCreator'
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !1, $6
   21    10        INIT_METHOD_CALL                                         !1, 'create'
         11        SEND_VAR_EX                                              !0
         12        DO_FCALL                                      0          
   22    13        INIT_FCALL_BY_NAME                                       'hint_for_alias'
         14        SEND_VAR_EX                                              !0
         15        DO_FCALL                                      0          
         16      > RETURN                                                   1

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

End of function create

End of class FooCreator.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.72 ms | 1395 KiB | 15 Q