3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo[]= array('color' => 'red' , 'size' => 'small'); $foo[]= array('color' => 'blue', 'size' => 'large'); $foo[]= array('size' => 'medium'); reset($foo); while (list($key, $val) = each($foo)) { echo "$key => $val\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 10
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 10
Branch analysis from position: 23
Branch analysis from position: 10
filename:       /in/VA9EG
function name:  (null)
number of ops:  24
compiled vars:  !0 = $foo, !1 = $key, !2 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN_DIM                                               !0
          1        OP_DATA                                                  <array>
    3     2        ASSIGN_DIM                                               !0
          3        OP_DATA                                                  <array>
    4     4        ASSIGN_DIM                                               !0
          5        OP_DATA                                                  <array>
    6     6        INIT_FCALL                                               'reset'
          7        SEND_REF                                                 !0
          8        DO_ICALL                                                 
    7     9      > JMP                                                      ->15
    8    10    >   ROPE_INIT                                     4  ~8      !1
         11        ROPE_ADD                                      1  ~8      ~8, '+%3D%3E+'
         12        ROPE_ADD                                      2  ~8      ~8, !2
         13        ROPE_END                                      3  ~7      ~8, '%0A'
         14        ECHO                                                     ~7
    7    15    >   INIT_FCALL_BY_NAME                                       'each'
         16        SEND_VAR_EX                                              !0
         17        DO_FCALL                                      0  $10     
         18        FETCH_LIST_R                                     $11     $10, 0
         19        ASSIGN                                                   !1, $11
         20        FETCH_LIST_R                                     $13     $10, 1
         21        ASSIGN                                                   !2, $13
         22      > JMPNZ                                                    $10, ->10
    9    23    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.27 ms | 1395 KiB | 18 Q