3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array("one"=>1,"two"=>2,"three"=>3); $o = new ArrayObject($arr); foreach ($o as $key=>$val){ echo $key . ' => ' . $val, "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 13
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 13
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/RSJR3
function name:  (null)
number of ops:  15
compiled vars:  !0 = $arr, !1 = $o, !2 = $val, !3 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        NEW                                              $5      'ArrayObject'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $5
    4     5      > FE_RESET_R                                       $8      !1, ->13
          6    > > FE_FETCH_R                                       ~9      $8, !2, ->13
          7    >   ASSIGN                                                   !3, ~9
    5     8        CONCAT                                           ~11     !3, '+%3D%3E+'
          9        CONCAT                                           ~12     ~11, !2
         10        ECHO                                                     ~12
         11        ECHO                                                     '%0A'
    4    12      > JMP                                                      ->6
         13    >   FE_FREE                                                  $8
    6    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.32 ms | 1393 KiB | 13 Q