3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array( array("one" => array("a"=>"0000", "b"=>"1111")), ); foreach($a as &$record) { $record["one"]["a"] = "2222"; } var_dump($a); var_dump(str_replace("2", "3", $a));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 2, Position 2 = 7
Branch analysis from position: 2
2 jumps found. (Code = 126) Position 1 = 3, Position 2 = 7
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/iOlfo
function name:  (null)
number of ops:  20
compiled vars:  !0 = $a, !1 = $record
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    7     1      > FE_RESET_RW                                      $3      !0, ->7
          2    > > FE_FETCH_RW                                              $3, !1, ->7
    9     3    >   FETCH_DIM_W                                      $4      !1, 'one'
          4        ASSIGN_DIM                                               $4, 'a'
          5        OP_DATA                                                  '2222'
    7     6      > JMP                                                      ->2
          7    >   FE_FREE                                                  $3
   12     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                                 
   14    11        INIT_FCALL                                               'var_dump'
         12        INIT_FCALL                                               'str_replace'
         13        SEND_VAL                                                 '2'
         14        SEND_VAL                                                 '3'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $7      
         17        SEND_VAR                                                 $7
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.71 ms | 1395 KiB | 17 Q