3v4l.org

run code in 500+ PHP versions simultaneously
<?php interface i {} class myException extends Exception implements i {} try { throw new myException(); } catch(i $i) { var_dump($i instanceof myException); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
Found catch point at position: 5
Branch analysis from position: 5
2 jumps found. (Code = 107) Position 1 = 6, Position 2 = -2
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ffu4v
function name:  (null)
number of ops:  11
compiled vars:  !0 = $i
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   DECLARE_CLASS                                                'myexception', 'exception'
    8     1        NEW                                                  $1      'myException'
          2        DO_FCALL                                          0          
          3      > THROW                                             0          $1
          4*       JMP                                                          ->10
    9     5  E > > CATCH                                           last         'i'
   10     6    >   INIT_FCALL                                                   'var_dump'
          7        INSTANCEOF                                           ~3      !0, 'myException'
          8        SEND_VAL                                                     ~3
          9        DO_ICALL                                                     
   11    10      > RETURN                                                       1

Class i: [no user functions]
Class myException: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
161.93 ms | 1464 KiB | 14 Q