3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ABC extends ErrorException {} try { throw new ABC; } catch(ErrorException $e) { if($e instanceof ErrorException) { echo 'si'; } else { echo 'no'; } }
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
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/f1cdP
function name:  (null)
number of ops:  11
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   NEW                                              $1      'ABC'
          1        DO_FCALL                                      0          
          2      > THROW                                         0          $1
          3*       JMP                                                      ->10
    8     4  E > > CATCH                                       last         'ErrorException'
   10     5    >   INSTANCEOF                                               !0, 'ErrorException'
          6      > JMPZ                                                     ~3, ->9
   11     7    >   ECHO                                                     'si'
          8      > JMP                                                      ->10
   14     9    >   ECHO                                                     'no'
   16    10    > > RETURN                                                   1

Class ABC: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.03 ms | 1384 KiB | 13 Q