3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = 1; for ($i=0; $i<5; $i++) { try { var_dump($value); throw new Exception; } catch (Exception $e) { $value = 2; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 3
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
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
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 3
Branch analysis from position: 15
Branch analysis from position: 3
filename:       /in/YULBd
function name:  (null)
number of ops:  16
compiled vars:  !0 = $value, !1 = $i, !2 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 1
    5     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->13
    7     3    >   INIT_FCALL                                               'var_dump'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                                 
    8     6        NEW                                              $6      'Exception'
          7        DO_FCALL                                      0          
          8      > THROW                                         0          $6
          9*       JMP                                                      ->12
    9    10  E > > CATCH                                       last         'Exception'
   10    11    >   ASSIGN                                                   !0, 2
    5    12        PRE_INC                                                  !1
         13    >   IS_SMALLER                                               !1, 5
         14      > JMPNZ                                                    ~10, ->3
   12    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.9 ms | 1395 KiB | 15 Q