3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { try { echo "1\n"; throw new Exception("E1"); } catch (Exception $e) { throw $e; } finally { try { echo "2\n"; throw new Exception("E2"); } catch (\Exception $e) { echo "3\n"; } } echo "4-\n"; } catch (\Exception $e) { echo "4+".$e->getMessage()."\n"; } echo "5\n";
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: 16
Branch analysis from position: 16
2 jumps found. (Code = 107) Position 1 = 17, Position 2 = -2
Branch analysis from position: 17
1 jumps found. (Code = 163) Position 1 = -2
Found catch point at position: 21
Branch analysis from position: 21
2 jumps found. (Code = 107) Position 1 = 22, Position 2 = -2
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8UEp4
function name:  (null)
number of ops:  29
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ECHO                                                     '1%0A'
    5     1        NEW                                              $2      'Exception'
          2        SEND_VAL_EX                                              'E1'
          3        DO_FCALL                                      0          
          4      > THROW                                         0          $2
          5*       JMP                                                      ->8
    6     6  E > > CATCH                                       last         'Exception'
    7     7    > > THROW                                         0          !0
    8     8*       FAST_CALL                                                ->10
          9*       JMP                                                      ->19
   10    10*       ECHO                                                     '2%0A'
   11    11*       NEW                                              $4      'Exception'
         12*       SEND_VAL_EX                                              'E2'
         13*       DO_FCALL                                      0          
         14*       THROW                                         0          $4
         15*       JMP                                                      ->18
   12    16  E > > CATCH                                       last         'Exception'
   13    17    >   ECHO                                                     '3%0A'
         18      > FAST_RET                                                 
   16    19*       ECHO                                                     '4-%0A'
         20*       JMP                                                      ->27
   17    21  E > > CATCH                                       last         'Exception'
   18    22    >   INIT_METHOD_CALL                                         !0, 'getMessage'
         23        DO_FCALL                                      0  $6      
         24        CONCAT                                           ~7      '4%2B', $6
         25        CONCAT                                           ~8      ~7, '%0A'
         26        ECHO                                                     ~8
   20    27        ECHO                                                     '5%0A'
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.38 ms | 983 KiB | 13 Q