3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
223.3 ms | 2894 KiB | 13 Q