3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { throw new \InvalidArgumentException(); } catch (\InvalidArgumentException $e) { echo "Catched InvalidArgumentException"; throw $e; } catch (\Exception $e) { echo "Catched Exception"; }
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 = 8
Branch analysis from position: 5
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 107) Position 1 = 9, Position 2 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 8
Branch analysis from position: 8
filename:       /in/BqHP1
function name:  (null)
number of ops:  11
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   NEW                                              $1      'InvalidArgumentException'
          1        DO_FCALL                                      0          
          2      > THROW                                         0          $1
          3*       JMP                                                      ->10
    5     4  E > > CATCH                                                    'InvalidArgumentException', ->8
    6     5    >   ECHO                                                     'Catched+InvalidArgumentException'
    7     6      > THROW                                         0          !0
          7*       JMP                                                      ->10
    8     8  E > > CATCH                                       last         'Exception'
    9     9    >   ECHO                                                     'Catched+Exception'
   10    10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.38 ms | 1397 KiB | 13 Q