3v4l.org

run code in 300+ PHP versions simultaneously
<?php function iter(iterable $input) { foreach ($input as $key => &$val) { echo "[$key] = '{$val}'\n"; } } iter(new ArrayObject(["one" => "1", "two" => "2"]));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UvKBt
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'iter'
          1        NEW                                              $0      'ArrayObject'
          2        SEND_VAL_EX                                              <array>
          3        DO_FCALL                                      0          
          4        SEND_VAR                                                 $0
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Function iter:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 2, Position 2 = 11
Branch analysis from position: 2
2 jumps found. (Code = 126) Position 1 = 3, Position 2 = 11
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/UvKBt
function name:  iter
number of ops:  13
compiled vars:  !0 = $input, !1 = $val, !2 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1      > FE_RESET_RW                                      $3      !0, ->11
          2    > > FE_FETCH_RW                                      ~4      $3, !1, ->11
          3    >   ASSIGN                                                   !2, ~4
    5     4        ROPE_INIT                                     5  ~7      '%5B'
          5        ROPE_ADD                                      1  ~7      ~7, !2
          6        ROPE_ADD                                      2  ~7      ~7, '%5D+%3D+%27'
          7        ROPE_ADD                                      3  ~7      ~7, !1
          8        ROPE_END                                      4  ~6      ~7, '%27%0A'
          9        ECHO                                                     ~6
    4    10      > JMP                                                      ->2
         11    >   FE_FREE                                                  $3
    7    12      > RETURN                                                   null

End of function iter

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
188.76 ms | 1398 KiB | 14 Q