3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface GroupOfException extends Throwable { } class SpecificException extends Exception implements GroupOfException { } try { throw new SpecificException(); } catch (GroupOfException $e) { echo 'Caught GroupOfException => ', get_class($e), "\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
Found catch point at position: 6
Branch analysis from position: 6
2 jumps found. (Code = 107) Position 1 = 7, Position 2 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hOOCZ
function name:  (null)
number of ops:  12
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                            'groupofexception'
    5     1        DECLARE_CLASS                                            'specificexception', 'exception'
    8     2        NEW                                              $1      'SpecificException'
          3        DO_FCALL                                      0          
          4      > THROW                                         0          $1
          5*       JMP                                                      ->11
    9     6  E > > CATCH                                       last         'GroupOfException'
   10     7    >   ECHO                                                     'Caught+GroupOfException+%3D%3E+'
          8        GET_CLASS                                        ~3      !0
          9        ECHO                                                     ~3
         10        ECHO                                                     '%0A'
   11    11      > RETURN                                                   1

Class GroupOfException: [no user functions]
Class SpecificException: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.12 ms | 1006 KiB | 13 Q