3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array( '' => 'foo', 'foo' => '', null, array(), 1, true, false, ); foreach($a as $k => $v) { echo "$k => $v\n"; var_dump(!empty($a[$k])); var_dump(isset($a[$k]) && $a[$k]); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 22
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 22
Branch analysis from position: 3
2 jumps found. (Code = 46) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 19
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
filename:       /in/u3cvg
function name:  (null)
number of ops:  24
compiled vars:  !0 = $a, !1 = $v, !2 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   12     1      > FE_RESET_R                                       $4      !0, ->22
          2    > > FE_FETCH_R                                       ~5      $4, !1, ->22
          3    >   ASSIGN                                                   !2, ~5
   13     4        ROPE_INIT                                     4  ~8      !2
          5        ROPE_ADD                                      1  ~8      ~8, '+%3D%3E+'
          6        ROPE_ADD                                      2  ~8      ~8, !1
          7        ROPE_END                                      3  ~7      ~8, '%0A'
          8        ECHO                                                     ~7
   14     9        INIT_FCALL                                               'var_dump'
         10        ISSET_ISEMPTY_DIM_OBJ                         1  ~10     !0, !2
         11        BOOL_NOT                                         ~11     ~10
         12        SEND_VAL                                                 ~11
         13        DO_ICALL                                                 
   15    14        INIT_FCALL                                               'var_dump'
         15        ISSET_ISEMPTY_DIM_OBJ                         0  ~13     !0, !2
         16      > JMPZ_EX                                          ~13     ~13, ->19
         17    >   FETCH_DIM_R                                      ~14     !0, !2
         18        BOOL                                             ~13     ~14
         19    >   SEND_VAL                                                 ~13
         20        DO_ICALL                                                 
   12    21      > JMP                                                      ->2
         22    >   FE_FREE                                                  $4
   16    23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.19 ms | 1395 KiB | 15 Q