3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array(array("Tom","Jones"), array("Mary","Perkins")); //old foreach ($array as $arr){ list($fname,$lname) = $arr; echo $fname,' ',$lname,'<BR>',"\n"; } //new foreach($array as list($fname,$lname)){ echo $fname,' ',$lname,'<BR>',"\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 15
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 15
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 15
2 jumps found. (Code = 77) Position 1 = 17, Position 2 = 29
Branch analysis from position: 17
2 jumps found. (Code = 78) Position 1 = 18, Position 2 = 29
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
Branch analysis from position: 15
filename:       /in/dv08i
function name:  (null)
number of ops:  31
compiled vars:  !0 = $array, !1 = $arr, !2 = $fname, !3 = $lname
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    6     1      > FE_RESET_R                                       $5      !0, ->15
          2    > > FE_FETCH_R                                               $5, !1, ->15
    7     3    >   QM_ASSIGN                                        ~6      !1
          4        FETCH_LIST_R                                     $7      ~6, 0
          5        ASSIGN                                                   !2, $7
          6        FETCH_LIST_R                                     $9      ~6, 1
          7        ASSIGN                                                   !3, $9
          8        FREE                                                     ~6
    8     9        ECHO                                                     !2
         10        ECHO                                                     '+'
         11        ECHO                                                     !3
         12        ECHO                                                     '%3CBR%3E'
         13        ECHO                                                     '%0A'
    6    14      > JMP                                                      ->2
         15    >   FE_FREE                                                  $5
   11    16      > FE_RESET_R                                       $11     !0, ->29
         17    > > FE_FETCH_R                                               $11, $12, ->29
         18    >   FETCH_LIST_R                                     $13     $12, 0
         19        ASSIGN                                                   !2, $13
         20        FETCH_LIST_R                                     $15     $12, 1
         21        ASSIGN                                                   !3, $15
         22        FREE                                                     $12
   12    23        ECHO                                                     !2
         24        ECHO                                                     '+'
         25        ECHO                                                     !3
         26        ECHO                                                     '%3CBR%3E'
         27        ECHO                                                     '%0A'
   11    28      > JMP                                                      ->17
         29    >   FE_FREE                                                  $11
   13    30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.51 ms | 1395 KiB | 13 Q