3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.24 ms | 1393 KiB | 13 Q