3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array( 'a' => null, 'b' => false, 'c' => true, 'd' => "", 'e' => 0, 'f' => 1, 'g' => "a", ); foreach($a as $key => $row) { echo $key . "\n"; var_dump(isset($a)); var_dump(!empty($a)); echo "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 17
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 17
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/2IiMS
function name:  (null)
number of ops:  19
compiled vars:  !0 = $a, !1 = $row, !2 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   13     1      > FE_RESET_R                                       $4      !0, ->17
          2    > > FE_FETCH_R                                       ~5      $4, !1, ->17
          3    >   ASSIGN                                                   !2, ~5
   14     4        CONCAT                                           ~7      !2, '%0A'
          5        ECHO                                                     ~7
   15     6        INIT_FCALL                                               'var_dump'
          7        ISSET_ISEMPTY_CV                                 ~8      !0
          8        SEND_VAL                                                 ~8
          9        DO_ICALL                                                 
   16    10        INIT_FCALL                                               'var_dump'
         11        ISSET_ISEMPTY_CV                                 ~10     !0
         12        BOOL_NOT                                         ~11     ~10
         13        SEND_VAL                                                 ~11
         14        DO_ICALL                                                 
   17    15        ECHO                                                     '%0A'
   13    16      > JMP                                                      ->2
         17    >   FE_FREE                                                  $4
   18    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.78 ms | 1395 KiB | 15 Q