3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myArr = []; // Is safe if (!empty($myArr['foo'])) { var_dump($myArr['foo']); } // Is not safe $myVal = $myArr['foo'];
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 8
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/87i5g
function name:  (null)
number of ops:  11
compiled vars:  !0 = $myArr, !1 = $myVal
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    6     1        ISSET_ISEMPTY_DIM_OBJ                         1  ~3      !0, 'foo'
          2        BOOL_NOT                                         ~4      ~3
          3      > JMPZ                                                     ~4, ->8
    7     4    >   INIT_FCALL                                               'var_dump'
          5        FETCH_DIM_R                                      ~5      !0, 'foo'
          6        SEND_VAL                                                 ~5
          7        DO_ICALL                                                 
   11     8    >   FETCH_DIM_R                                      ~7      !0, 'foo'
          9        ASSIGN                                                   !1, ~7
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
185.03 ms | 1394 KiB | 15 Q