3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array["a"] = "Foo"; $array["b"] = ""; $array["c"] = "Baz"; $array["d"] = "Wom"; //print end($array) . "\n"; while(list($var, $val) = each($array)) { print $val . "\n"; } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 9
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 9
Branch analysis from position: 19
Branch analysis from position: 9
filename:       /in/fTqqv
function name:  (null)
number of ops:  20
compiled vars:  !0 = $array, !1 = $val, !2 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN_DIM                                               !0, 'a'
          1        OP_DATA                                                  'Foo'
    3     2        ASSIGN_DIM                                               !0, 'b'
          3        OP_DATA                                                  ''
    4     4        ASSIGN_DIM                                               !0, 'c'
          5        OP_DATA                                                  'Baz'
    5     6        ASSIGN_DIM                                               !0, 'd'
          7        OP_DATA                                                  'Wom'
    8     8      > JMP                                                      ->11
    9     9    >   CONCAT                                           ~7      !1, '%0A'
         10        ECHO                                                     ~7
    8    11    >   INIT_FCALL_BY_NAME                                       'each'
         12        SEND_VAR_EX                                              !0
         13        DO_FCALL                                      0  $8      
         14        FETCH_LIST_R                                     $9      $8, 0
         15        ASSIGN                                                   !2, $9
         16        FETCH_LIST_R                                     $11     $8, 1
         17        ASSIGN                                                   !1, $11
         18      > JMPNZ                                                    $8, ->9
   11    19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
245.57 ms | 1393 KiB | 13 Q