3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(1=>1, 3=>3, 5=>5, 7=>7); $a = new ArrayObject($a); foreach ($a as $k => $v) { var_dump("$k => $v"); if ($k == 3) { $a['a'] = "?"; } } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 19
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 19
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 18
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/vP95o
function name:  (null)
number of ops:  21
compiled vars:  !0 = $a, !1 = $v, !2 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        NEW                                              $4      'ArrayObject'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $4
    6     5      > FE_RESET_R                                       $7      !0, ->19
          6    > > FE_FETCH_R                                       ~8      $7, !1, ->19
          7    >   ASSIGN                                                   !2, ~8
    7     8        INIT_FCALL                                               'var_dump'
          9        ROPE_INIT                                     3  ~11     !2
         10        ROPE_ADD                                      1  ~11     ~11, '+%3D%3E+'
         11        ROPE_END                                      2  ~10     ~11, !1
         12        SEND_VAL                                                 ~10
         13        DO_ICALL                                                 
    8    14        IS_EQUAL                                                 !2, 3
         15      > JMPZ                                                     ~14, ->18
    9    16    >   ASSIGN_DIM                                               !0, 'a'
         17        OP_DATA                                                  '%3F'
    6    18    > > JMP                                                      ->6
         19    >   FE_FREE                                                  $7
   12    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.81 ms | 1395 KiB | 15 Q