3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = array(0 => 1); echo $x; echo "\n"; foreach ($x as $k => $v) { echo "$k = $v \n"; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 12
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 12
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/FsDir
function name:  (null)
number of ops:  14
compiled vars:  !0 = $x, !1 = $v, !2 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ECHO                                                     !0
    4     2        ECHO                                                     '%0A'
    5     3      > FE_RESET_R                                       $4      !0, ->12
          4    > > FE_FETCH_R                                       ~5      $4, !1, ->12
          5    >   ASSIGN                                                   !2, ~5
    6     6        ROPE_INIT                                     4  ~8      !2
          7        ROPE_ADD                                      1  ~8      ~8, '+%3D+'
          8        ROPE_ADD                                      2  ~8      ~8, !1
          9        ROPE_END                                      3  ~7      ~8, '+%0A'
         10        ECHO                                                     ~7
    5    11      > JMP                                                      ->4
         12    >   FE_FREE                                                  $4
    8    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.99 ms | 1393 KiB | 13 Q