3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.66 ms | 1397 KiB | 13 Q