3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace CacheException; class DriverOffline extends Exception {} class KeyExists extends Exception {} try { throw new \CacheException\KeyExists; } catch (\CacheException\DriverOffline $e) { var_dump($e); } catch (\CacheException\KeyExists $e) { var_dump($e); }
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 = 11
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
2 jumps found. (Code = 107) Position 1 = 12, Position 2 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 11
Branch analysis from position: 11
filename:       /in/5kZDv
function name:  (null)
number of ops:  16
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   DECLARE_CLASS                                            'cacheexception%5Cdriveroffline', 'cacheexception%5Cexception'
    5     1        DECLARE_CLASS                                            'cacheexception%5Ckeyexists', 'cacheexception%5Cexception'
    9     2        NEW                                              $1      'CacheException%5CKeyExists'
          3        DO_FCALL                                      0          
          4      > THROW                                         0          $1
          5*       JMP                                                      ->15
   11     6  E > > CATCH                                                    'CacheException%5CDriverOffline', ->11
   13     7    >   INIT_NS_FCALL_BY_NAME                                    'CacheException%5Cvar_dump'
          8        SEND_VAR_EX                                              !0
          9        DO_FCALL                                      0          
         10      > JMP                                                      ->15
   15    11  E > > CATCH                                       last         'CacheException%5CKeyExists'
   17    12    >   INIT_NS_FCALL_BY_NAME                                    'CacheException%5Cvar_dump'
         13        SEND_VAR_EX                                              !0
         14        DO_FCALL                                      0          
   18    15    > > RETURN                                                   1

Class CacheException\DriverOffline: [no user functions]
Class CacheException\KeyExists: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.8 ms | 1395 KiB | 15 Q