3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo {} class_alias('foo', 'fooAlias'); function test(fooAlias $a) { echo 'works'; } $t = new foo; test($t);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IoM7o
function name:  (null)
number of ops:  11
compiled vars:  !0 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'class_alias'
          1        SEND_VAL                                                 'foo'
          2        SEND_VAL                                                 'fooAlias'
          3        DO_ICALL                                                 
   11     4        NEW                                              $2      'foo'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !0, $2
   12     7        INIT_FCALL                                               'test'
          8        SEND_VAR                                                 !0
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IoM7o
function name:  test
number of ops:  3
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    8     1        ECHO                                                     'works'
    9     2      > RETURN                                                   null

End of function test

Class foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.84 ms | 1397 KiB | 16 Q