3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "1"; try { echo "2"; throw new Exception('test'); echo "3"; } catch (Exception $e) { echo "Hi!"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
Found catch point at position: 8
Branch analysis from position: 8
2 jumps found. (Code = 107) Position 1 = 9, Position 2 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Cc4j1
function name:  (null)
number of ops:  11
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ECHO                                                     '1'
    5     1        ECHO                                                     '2'
    6     2        NEW                                              $1      'Exception'
          3        SEND_VAL_EX                                              'test'
          4        DO_FCALL                                      0          
          5      > THROW                                         0          $1
    7     6*       ECHO                                                     '3'
          7*       JMP                                                      ->10
    8     8  E > > CATCH                                       last         'Exception'
    9     9    >   ECHO                                                     'Hi%21'
   10    10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.49 ms | 1392 KiB | 13 Q