3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = array( 'tes1' => array(1, 2, 3), 'tes2' => array(2, 3, 4), ); $arr2 = $arr1; foreach($arr2 as &$item2) { $item2 = implode('+', $item2); } var_export($arr1); var_export($arr2);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 3, Position 2 = 10
Branch analysis from position: 3
2 jumps found. (Code = 126) Position 1 = 4, Position 2 = 10
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/ktErh
function name:  (null)
number of ops:  18
compiled vars:  !0 = $arr1, !1 = $arr2, !2 = $item2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    6     1        ASSIGN                                                   !1, !0
    8     2      > FE_RESET_RW                                      $5      !1, ->10
          3    > > FE_FETCH_RW                                              $5, !2, ->10
    9     4    >   INIT_FCALL                                               'implode'
          5        SEND_VAL                                                 '%2B'
          6        SEND_VAR                                                 !2
          7        DO_ICALL                                         $6      
          8        ASSIGN                                                   !2, $6
    8     9      > JMP                                                      ->3
         10    >   FE_FREE                                                  $5
   12    11        INIT_FCALL                                               'var_export'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
   13    14        INIT_FCALL                                               'var_export'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.29 ms | 1395 KiB | 17 Q