3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rooms = array('Reception' => 1, 'Bedrooms' => 3, 'Bathrooms' => 1); reset($rooms); while(list($key,$val) = each($rooms)) { print "$key => $val\n"; $houses[] = $rooms; }
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 = 5
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 5
Branch analysis from position: 20
Branch analysis from position: 5
filename:       /in/AOo0X
function name:  (null)
number of ops:  21
compiled vars:  !0 = $rooms, !1 = $key, !2 = $val, !3 = $houses
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'reset'
          2        SEND_REF                                                 !0
          3        DO_ICALL                                                 
    4     4      > JMP                                                      ->12
    5     5    >   ROPE_INIT                                     4  ~7      !1
          6        ROPE_ADD                                      1  ~7      ~7, '+%3D%3E+'
          7        ROPE_ADD                                      2  ~7      ~7, !2
          8        ROPE_END                                      3  ~6      ~7, '%0A'
          9        ECHO                                                     ~6
    6    10        ASSIGN_DIM                                               !3
         11        OP_DATA                                                  !0
    4    12    >   INIT_FCALL_BY_NAME                                       'each'
         13        SEND_VAR_EX                                              !0
         14        DO_FCALL                                      0  $10     
         15        FETCH_LIST_R                                     $11     $10, 0
         16        ASSIGN                                                   !1, $11
         17        FETCH_LIST_R                                     $13     $10, 1
         18        ASSIGN                                                   !2, $13
         19      > JMPNZ                                                    $10, ->5
    7    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.74 ms | 1395 KiB | 15 Q