3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array("one"=>1,"two"=>2,"three"=>3); $o = new ArrayObject($arr); var_dump($o); echo $o->one, "\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 = 12, Position 2 = 19
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 19
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/WEglS
function name:  (null)
number of ops:  21
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_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
    5     8        FETCH_OBJ_R                                      ~9      !1, 'one'
          9        ECHO                                                     ~9
         10        ECHO                                                     '%0A'
    6    11      > FE_RESET_R                                       $10     !1, ->19
         12    > > FE_FETCH_R                                       ~11     $10, !2, ->19
         13    >   ASSIGN                                                   !3, ~11
    7    14        CONCAT                                           ~13     !3, '+%3D%3E+'
         15        CONCAT                                           ~14     ~13, !2
         16        ECHO                                                     ~14
         17        ECHO                                                     '%0A'
    6    18      > JMP                                                      ->12
         19    >   FE_FREE                                                  $10
    8    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.9 ms | 1395 KiB | 15 Q