3v4l.org

run code in 500+ PHP versions simultaneously
<?php class A {} class_alias('A', 'B'); function f1(A $a) { } function f2(B $b) { } $a = new A(); f1($a); f2($a); $b = new B(); f1($b); f2($b);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ntu7n
function name:  (null)
number of ops:  23
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                                   'class_alias'
          1        SEND_VAL                                                     'A'
          2        SEND_VAL                                                     'B'
          3        DO_ICALL                                                     
   15     4        NEW                                                  $3      'A'
          5        DO_FCALL                                          0          
          6        ASSIGN                                                       !0, $3
   16     7        INIT_FCALL                                                   'f1'
          8        SEND_VAR                                                     !0
          9        DO_FCALL                                          0          
   17    10        INIT_FCALL                                                   'f2'
         11        SEND_VAR                                                     !0
         12        DO_FCALL                                          0          
   19    13        NEW                                                  $8      'B'
         14        DO_FCALL                                          0          
         15        ASSIGN                                                       !1, $8
   20    16        INIT_FCALL                                                   'f1'
         17        SEND_VAR                                                     !1
         18        DO_FCALL                                          0          
   21    19        INIT_FCALL                                                   'f2'
         20        SEND_VAR                                                     !1
         21        DO_FCALL                                          0          
         22      > RETURN                                                       1

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

End of function f1

Function f2:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ntu7n
function name:  f2
number of ops:  2
compiled vars:  !0 = $b
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   11     0  E >   RECV                                                 !0      
   13     1      > RETURN                                                       null

End of function f2

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
127.85 ms | 481 KiB | 12 Q