3v4l.org

run code in 300+ PHP versions simultaneously
<?php $numbers = array(1 => 'one', 2 => 'two', 3 => 'three'); //$obj = new ArrayObject($numbers); $iterator =new ArrayIterator($numbers); //echo "Before insertion:\n"; foreach ($iterator as $key=>$val) echo " ".$key."=>".$val."\n"; // $obj->append('four'); $numbers[] = 'four'; //echo "\nAfter appending a new value:\n"; //foreach ($iterator 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 = 14
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 14
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/DLap6
function name:  (null)
number of ops:  18
compiled vars:  !0 = $numbers, !1 = $iterator, !2 = $val, !3 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    6     1        NEW                                              $5      'ArrayIterator'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $5
    9     5      > FE_RESET_R                                       $8      !1, ->14
          6    > > FE_FETCH_R                                       ~9      $8, !2, ->14
          7    >   ASSIGN                                                   !3, ~9
          8        CONCAT                                           ~11     '++++', !3
          9        CONCAT                                           ~12     ~11, '%3D%3E'
         10        CONCAT                                           ~13     ~12, !2
         11        CONCAT                                           ~14     ~13, '%0A'
         12        ECHO                                                     ~14
         13      > JMP                                                      ->6
         14    >   FE_FREE                                                  $8
   12    15        ASSIGN_DIM                                               !0
         16        OP_DATA                                                  'four'
   16    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.59 ms | 1393 KiB | 13 Q