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; } // new: PHP5.5 foreach($array as list($fname,$lname)){ echo $fname,' ',$lname; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 13
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 13
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 13
2 jumps found. (Code = 77) Position 1 = 15, Position 2 = 25
Branch analysis from position: 15
2 jumps found. (Code = 78) Position 1 = 16, Position 2 = 25
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
Branch analysis from position: 13
filename:       /in/RURqM
function name:  (null)
number of ops:  27
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, ->13
          2    > > FE_FETCH_R                                               $5, !1, ->13
    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
    8    12      > JMP                                                      ->2
         13    >   FE_FREE                                                  $5
   14    14      > FE_RESET_R                                       $11     !0, ->25
         15    > > FE_FETCH_R                                               $11, $12, ->25
         16    >   FETCH_LIST_R                                     $13     $12, 0
         17        ASSIGN                                                   !2, $13
         18        FETCH_LIST_R                                     $15     $12, 1
         19        ASSIGN                                                   !3, $15
         20        FREE                                                     $12
   15    21        ECHO                                                     !2
         22        ECHO                                                     '+'
         23        ECHO                                                     !3
   14    24      > JMP                                                      ->15
         25    >   FE_FREE                                                  $11
   16    26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.69 ms | 1395 KiB | 13 Q