3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array("one"=>1,"two"=>2,"three"=>3); $o = new ArrayObject($arr); echo $o->offsetGet('two'),"\n"; foreach ($o as $key=>$val){ echo $key . ' => ' . $val, "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 18
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 18
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/3LMkf
function name:  (null)
number of ops:  20
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        INIT_METHOD_CALL                                         !1, 'offsetGet'
          6        SEND_VAL_EX                                              'two'
          7        DO_FCALL                                      0  $8      
          8        ECHO                                                     $8
          9        ECHO                                                     '%0A'
    5    10      > FE_RESET_R                                       $9      !1, ->18
         11    > > FE_FETCH_R                                       ~10     $9, !2, ->18
         12    >   ASSIGN                                                   !3, ~10
    6    13        CONCAT                                           ~12     !3, '+%3D%3E+'
         14        CONCAT                                           ~13     ~12, !2
         15        ECHO                                                     ~13
         16        ECHO                                                     '%0A'
    5    17      > JMP                                                      ->11
         18    >   FE_FREE                                                  $9
    7    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.76 ms | 1394 KiB | 13 Q