3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.01 ms | 1395 KiB | 15 Q