3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array[] = array('first'=>'jake','last'=>'quattrocchi'); $array[] = array('first'=>'david'); foreach($array as $key=>$value){ $value['first'] = 'adfgadgadfg'; } var_dump($array);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 10
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 10
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/BVNog
function name:  (null)
number of ops:  15
compiled vars:  !0 = $array, !1 = $value, !2 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN_DIM                                               !0
          1        OP_DATA                                                  <array>
    4     2        ASSIGN_DIM                                               !0
          3        OP_DATA                                                  <array>
    6     4      > FE_RESET_R                                       $5      !0, ->10
          5    > > FE_FETCH_R                                       ~6      $5, !1, ->10
          6    >   ASSIGN                                                   !2, ~6
    7     7        ASSIGN_DIM                                               !1, 'first'
          8        OP_DATA                                                  'adfgadgadfg'
    6     9      > JMP                                                      ->5
         10    >   FE_FREE                                                  $5
    9    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.71 ms | 1386 KiB | 15 Q