3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = 0; $i < 10; $i++) { try { echo $i, PHP_EOL; throw new RuntimeException(':/'); } catch (\Throwable $e) { echo 'Exception caught.', PHP_EOL; continue; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
1 jumps found. (Code = 108) Position 1 = -2
Found catch point at position: 9
Branch analysis from position: 9
2 jumps found. (Code = 107) Position 1 = 10, Position 2 = -2
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 2
Branch analysis from position: 16
Branch analysis from position: 2
filename:       /in/QiDBR
function name:  (null)
number of ops:  17
compiled vars:  !0 = $i, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->14
    5     2    >   ECHO                                                     !0
          3        ECHO                                                     '%0A'
    6     4        NEW                                              $3      'RuntimeException'
          5        SEND_VAL_EX                                              '%3A%2F'
          6        DO_FCALL                                      0          
          7      > THROW                                         0          $3
          8*       JMP                                                      ->13
    7     9  E > > CATCH                                       last         'Throwable'
    8    10    >   ECHO                                                     'Exception+caught.'
         11        ECHO                                                     '%0A'
    9    12      > JMP                                                      ->13
    3    13    >   PRE_INC                                                  !0
         14    >   IS_SMALLER                                               !0, 10
         15      > JMPNZ                                                    ~6, ->2
   11    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150 ms | 1007 KiB | 13 Q