3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface foo {} class_alias('foo', 'bar'); echo interface_exists('bar') ? 'yes' : 'no';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mqRFR
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'class_alias'
          1        SEND_VAL                                                 'foo'
          2        SEND_VAL                                                 'bar'
          3        DO_ICALL                                                 
    4     4        INIT_FCALL                                               'interface_exists'
          5        SEND_VAL                                                 'bar'
          6        DO_ICALL                                         $1      
          7      > JMPZ                                                     $1, ->10
          8    >   QM_ASSIGN                                        ~2      'yes'
          9      > JMP                                                      ->11
         10    >   QM_ASSIGN                                        ~2      'no'
         11    >   ECHO                                                     ~2
         12      > RETURN                                                   1

Class foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.22 ms | 1394 KiB | 17 Q