3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo {} class Bar extends Foo {} class FooCreator { public function create(FooAlias $foo) { } } $foo = new Bar; $creator = new FooCreator(); $creator->create($foo); class_alias('Foo', 'FooAlias'); hint_for_alias($foo);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vnA9M
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 >   NEW                                              $2      'Bar'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   17     3        NEW                                              $5      'FooCreator'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $5
   19     6        INIT_METHOD_CALL                                         !1, 'create'
          7        SEND_VAR_EX                                              !0
          8        DO_FCALL                                      0          
   21     9        INIT_FCALL                                               'class_alias'
         10        SEND_VAL                                                 'Foo'
         11        SEND_VAL                                                 'FooAlias'
         12        DO_ICALL                                                 
   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/vnA9M
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:
172.42 ms | 1395 KiB | 15 Q