3v4l.org

run code in 300+ PHP versions simultaneously
<?php function handle($throw = FALSE) { try { try { throw new \LogicException('invalid xml'); } catch (\Exception $e) { throw new \LogicException('', 0, $e); // wrap } } catch (\LogicException $e) { echo "ok\n"; } catch (\Exception $e) { echo "ok\n"; } } try { handle(); } catch (\Exception $e) { die('FUCKING BUG'); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 3
Branch analysis from position: 3
2 jumps found. (Code = 107) Position 1 = 4, Position 2 = -2
Branch analysis from position: 4
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/VA4QL
function name:  (null)
number of ops:  6
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   22     0  E >   INIT_FCALL                                               'handle'
          1        DO_FCALL                                      0          
          2      > JMP                                                      ->5
   23     3  E > > CATCH                                       last         'Exception'
   24     4    > > EXIT                                                     'FUCKING+BUG'
   25     5    > > RETURN                                                   1

Function handle:
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 = -2
Branch analysis from position: 7
1 jumps found. (Code = 108) Position 1 = -2
Found catch point at position: 14
Branch analysis from position: 14
2 jumps found. (Code = 107) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
2 jumps found. (Code = 107) Position 1 = 18, Position 2 = -2
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 17
Branch analysis from position: 17
filename:       /in/VA4QL
function name:  handle
number of ops:  20
compiled vars:  !0 = $throw, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV_INIT                                        !0      <false>
    7     1        NEW                                              $2      'LogicException'
          2        SEND_VAL_EX                                              'invalid+xml'
          3        DO_FCALL                                      0          
          4      > THROW                                         0          $2
          5*       JMP                                                      ->13
    9     6  E > > CATCH                                       last         'Exception'
   10     7    >   NEW                                              $4      'LogicException'
          8        SEND_VAL_EX                                              ''
          9        SEND_VAL_EX                                              0
         10        SEND_VAR_EX                                              !1
         11        DO_FCALL                                      0          
         12      > THROW                                         0          $4
         13*       JMP                                                      ->19
   13    14  E > > CATCH                                                    'LogicException', ->17
   14    15    >   ECHO                                                     'ok%0A'
         16      > JMP                                                      ->19
   16    17  E > > CATCH                                       last         'Exception'
   17    18    >   ECHO                                                     'ok%0A'
   19    19    > > RETURN                                                   null

End of function handle

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.76 ms | 1399 KiB | 14 Q