3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { $x = $a[1]; } catch (\Throwable $e) { echo 'Caught'; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 3
Branch analysis from position: 3
2 jumps found. (Code = 107) Position 1 = 4, Position 2 = -2
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/A5OmL
function name:  (null)
number of ops:  6
compiled vars:  !0 = $x, !1 = $a, !2 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   FETCH_DIM_R                                      ~3      !1, 1
          1        ASSIGN                                                   !0, ~3
          2      > JMP                                                      ->5
    6     3  E > > CATCH                                       last         'Throwable'
    7     4    >   ECHO                                                     'Caught'
    8     5    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
194.74 ms | 997 KiB | 13 Q