3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = array( 'a' => 'abc', 'b' => 'def', 'c' => 'ghi' ); foreach ($var as $key => &$val) { $val = $key . ':' . 'aaa'; } $compiled = array(); foreach ($var as $key => $val) { echo "{$key} = {$val}\n"; $compiled[] = $key . '=' . $val; } print_r($compiled);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 2, Position 2 = 8
Branch analysis from position: 2
2 jumps found. (Code = 126) Position 1 = 3, Position 2 = 8
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 8
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 23
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 23
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
Branch analysis from position: 8
filename:       /in/jI1ID
function name:  (null)
number of ops:  28
compiled vars:  !0 = $var, !1 = $val, !2 = $key, !3 = $compiled
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    8     1      > FE_RESET_RW                                      $5      !0, ->8
          2    > > FE_FETCH_RW                                      ~6      $5, !1, ->8
          3    >   ASSIGN                                                   !2, ~6
    9     4        CONCAT                                           ~8      !2, '%3A'
          5        CONCAT                                           ~9      ~8, 'aaa'
          6        ASSIGN                                                   !1, ~9
    8     7      > JMP                                                      ->2
          8    >   FE_FREE                                                  $5
   12     9        ASSIGN                                                   !3, <array>
   14    10      > FE_RESET_R                                       $12     !0, ->23
         11    > > FE_FETCH_R                                       ~13     $12, !1, ->23
         12    >   ASSIGN                                                   !2, ~13
   15    13        ROPE_INIT                                     4  ~16     !2
         14        ROPE_ADD                                      1  ~16     ~16, '+%3D+'
         15        ROPE_ADD                                      2  ~16     ~16, !1
         16        ROPE_END                                      3  ~15     ~16, '%0A'
         17        ECHO                                                     ~15
   16    18        CONCAT                                           ~19     !2, '%3D'
         19        CONCAT                                           ~20     ~19, !1
         20        ASSIGN_DIM                                               !3
         21        OP_DATA                                                  ~20
   14    22      > JMP                                                      ->11
         23    >   FE_FREE                                                  $12
   19    24        INIT_FCALL                                               'print_r'
         25        SEND_VAR                                                 !3
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.78 ms | 1401 KiB | 15 Q