3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array("one", "two","three"); while ($phantu = each($arr)) { echo "Key: $phantu[$key]; Value: $phantu[$value]<br />\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 2
Branch analysis from position: 15
Branch analysis from position: 2
filename:       /in/Ea2Bq
function name:  (null)
number of ops:  16
compiled vars:  !0 = $arr, !1 = $phantu, !2 = $key, !3 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1      > JMP                                                      ->10
    4     2    >   ROPE_INIT                                     5  ~8      'Key%3A+'
          3        FETCH_DIM_R                                      ~5      !1, !2
          4        ROPE_ADD                                      1  ~8      ~8, ~5
          5        ROPE_ADD                                      2  ~8      ~8, '%3B+Value%3A+'
          6        FETCH_DIM_R                                      ~6      !1, !3
          7        ROPE_ADD                                      3  ~8      ~8, ~6
          8        ROPE_END                                      4  ~7      ~8, '%3Cbr+%2F%3E%0A'
          9        ECHO                                                     ~7
    3    10    >   INIT_FCALL_BY_NAME                                       'each'
         11        SEND_VAR_EX                                              !0
         12        DO_FCALL                                      0  $11     
         13        ASSIGN                                           ~12     !1, $11
         14      > JMPNZ                                                    ~12, ->2
    5    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
190.38 ms | 1398 KiB | 16 Q