3v4l.org

run code in 300+ PHP versions simultaneously
<?php try{ "string" . 1 + throw throw throw throw throw throw new Exception("exception"); } catch (Exception $e) { var_dump($e->getMessage()); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
Found catch point at position: 10
Branch analysis from position: 10
2 jumps found. (Code = 107) Position 1 = 11, Position 2 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XQvLd
function name:  (null)
number of ops:  17
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   NEW                                              $1      'Exception'
          1        SEND_VAL_EX                                              'exception'
          2        DO_FCALL                                      0          
          3      > THROW                                         1          $1
          4*       THROW                                         1          <true>
          5*       THROW                                         1          <true>
          6*       THROW                                         1          <true>
          7*       THROW                                         1          <true>
          8*       THROW                                         1          <true>
          9*       JMP                                                      ->16
    5    10  E > > CATCH                                       last         'Exception'
    6    11    >   INIT_FCALL                                               'var_dump'
         12        INIT_METHOD_CALL                                         !0, 'getMessage'
         13        DO_FCALL                                      0  $3      
         14        SEND_VAR                                                 $3
         15        DO_ICALL                                                 
    7    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.89 ms | 1009 KiB | 14 Q