3v4l.org

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

Class InvalidPage: [no user functions]
Class PageNotAnInteger: [no user functions]
Class EmptyPage: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.76 ms | 1392 KiB | 13 Q