3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo =[ [ 'a', 'b' ], [ 'c', 'd' ] ]; foreach ($foo as [ $x, &$y ]) { /* .... */ } $y = 'e'; var_dump($foo);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 2, Position 2 = 10
Branch analysis from position: 2
2 jumps found. (Code = 126) Position 1 = 3, Position 2 = 10
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/A5Vi7
function name:  (null)
number of ops:  16
compiled vars:  !0 = $foo, !1 = $x, !2 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1      > FE_RESET_RW                                      $4      !0, ->10
          2    > > FE_FETCH_RW                                              $4, $5, ->10
          3    >   FETCH_LIST_R                                     $6      $5, 0
          4        ASSIGN                                                   !1, $6
          5        FETCH_LIST_W                                     $8      $5, 1
          6        MAKE_REF                                         $9      $8
          7        ASSIGN_REF                                               !2, $9
          8        FREE                                                     $5
          9      > JMP                                                      ->2
         10    >   FE_FREE                                                  $4
    4    11        ASSIGN                                                   !2, 'e'
    5    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.89 ms | 1395 KiB | 15 Q