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,"\n"; } // new: PHP5.5 foreach($array as list($fname,$lname)){ echo $fname,' ',$lname,"\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 14
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 14
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 14
2 jumps found. (Code = 77) Position 1 = 16, Position 2 = 27
Branch analysis from position: 16
2 jumps found. (Code = 78) Position 1 = 17, Position 2 = 27
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
Branch analysis from position: 14
filename:       /in/f3AjX
function name:  (null)
number of ops:  29
compiled vars:  !0 = $array, !1 = $arr, !2 = $fname, !3 = $lname
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
    8     1      > FE_RESET_R                                       $5      !0, ->14
          2    > > FE_FETCH_R                                               $5, !1, ->14
    9     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
   10     9        ECHO                                                     !2
         10        ECHO                                                     '+'
         11        ECHO                                                     !3
         12        ECHO                                                     '%0A'
    8    13      > JMP                                                      ->2
         14    >   FE_FREE                                                  $5
   14    15      > FE_RESET_R                                       $11     !0, ->27
         16    > > FE_FETCH_R                                               $11, $12, ->27
         17    >   FETCH_LIST_R                                     $13     $12, 0
         18        ASSIGN                                                   !2, $13
         19        FETCH_LIST_R                                     $15     $12, 1
         20        ASSIGN                                                   !3, $15
         21        FREE                                                     $12
   15    22        ECHO                                                     !2
         23        ECHO                                                     '+'
         24        ECHO                                                     !3
         25        ECHO                                                     '%0A'
   14    26      > JMP                                                      ->16
         27    >   FE_FREE                                                  $11
   16    28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.8 ms | 1395 KiB | 13 Q