3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159.32 ms | 2515 KiB | 13 Q