3v4l.org

run code in 300+ PHP versions simultaneously
<?php $users = array( array('Foo', 'Bar'), array('Baz', 'Qux'), ); // Before foreach ($users as $user) { list($firstName, $lastName) = $user; echo "First name: $firstName, last name: $lastName. "; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 16
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 16
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/oNULl
function name:  (null)
number of ops:  18
compiled vars:  !0 = $users, !1 = $user, !2 = $firstName, !3 = $lastName
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    9     1      > FE_RESET_R                                       $5      !0, ->16
          2    > > FE_FETCH_R                                               $5, !1, ->16
   10     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
   11     9        ROPE_INIT                                     5  ~12     'First+name%3A+'
         10        ROPE_ADD                                      1  ~12     ~12, !2
         11        ROPE_ADD                                      2  ~12     ~12, '%2C+last+name%3A+'
         12        ROPE_ADD                                      3  ~12     ~12, !3
         13        ROPE_END                                      4  ~11     ~12, '.+'
         14        ECHO                                                     ~11
    9    15      > JMP                                                      ->2
         16    >   FE_FREE                                                  $5
   12    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.71 ms | 1393 KiB | 13 Q