3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [[1,2],[3,4]]; //foreach($array as list($x, $y)) { // echo $x . ' : ' . $y . PHP_EOL; //} while(list($x, $y) = each($array)) { var_dump($x); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 2
Branch analysis from position: 13
Branch analysis from position: 2
filename:       /in/Ill5H
function name:  (null)
number of ops:  14
compiled vars:  !0 = $array, !1 = $x, !2 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    9     1      > JMP                                                      ->5
          2    >   INIT_FCALL                                               'var_dump'
          3        SEND_VAR                                                 !1
          4        DO_ICALL                                                 
          5    >   INIT_FCALL_BY_NAME                                       'each'
          6        SEND_VAR_EX                                              !0
          7        DO_FCALL                                      0  $5      
          8        FETCH_LIST_R                                     $6      $5, 0
          9        ASSIGN                                                   !1, $6
         10        FETCH_LIST_R                                     $8      $5, 1
         11        ASSIGN                                                   !2, $8
         12      > JMPNZ                                                    $5, ->2
         13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.05 ms | 1394 KiB | 18 Q