3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array('derp'=>'test'); try { $d = $arr['derp6']; } catch (exception $e) { echo 'Died.'.print_R($e,1); } echo $d;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 4
Branch analysis from position: 4
2 jumps found. (Code = 107) Position 1 = 5, Position 2 = -2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/89gCj
function name:  (null)
number of ops:  13
compiled vars:  !0 = $arr, !1 = $d, !2 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        FETCH_DIM_R                                      ~4      !0, 'derp6'
          2        ASSIGN                                                   !1, ~4
          3      > JMP                                                      ->11
    6     4  E > > CATCH                                       last         'exception'
    7     5    >   INIT_FCALL                                               'print_r'
          6        SEND_VAR                                                 !2
          7        SEND_VAL                                                 1
          8        DO_ICALL                                         $6      
          9        CONCAT                                           ~7      'Died.', $6
         10        ECHO                                                     ~7
    9    11    >   ECHO                                                     !1
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.28 ms | 1394 KiB | 15 Q