3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( 'string' => 'my string', 'empty string' => '', 'number' => 5, 'zero' => 0, 'null' => null, 'array' => array(1, 2, 3), 'empty_array' => array(), ); foreach ($arr as $key => $value) { echo $key, ' is ', (isset($arr[$key]) ? 'set' : 'not set'), PHP_EOL; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 14
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 14
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/KiB4h
function name:  (null)
number of ops:  16
compiled vars:  !0 = $arr, !1 = $value, !2 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   13     1      > FE_RESET_R                                       $4      !0, ->14
          2    > > FE_FETCH_R                                       ~5      $4, !1, ->14
          3    >   ASSIGN                                                   !2, ~5
   14     4        ECHO                                                     !2
          5        ECHO                                                     '+is+'
          6        ISSET_ISEMPTY_DIM_OBJ                         0          !0, !2
          7      > JMPZ                                                     ~7, ->10
          8    >   QM_ASSIGN                                        ~8      'set'
          9      > JMP                                                      ->11
         10    >   QM_ASSIGN                                        ~8      'not+set'
         11    >   ECHO                                                     ~8
         12        ECHO                                                     '%0A'
   13    13      > JMP                                                      ->2
         14    >   FE_FREE                                                  $4
   15    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.39 ms | 1398 KiB | 13 Q