3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo [1, "2", "three" => 3]["three"]; // 3 $array = array(array("Tom","Jones"), array("Mary","Perkins")); foreach ($array as $arr){ list($fname,$lname) = $arr; echo $fname,' ',$lname; } foreach($array as list($fname,$lname)){ echo $fname,' ',$lname; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 15
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 15
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 15
2 jumps found. (Code = 77) Position 1 = 17, Position 2 = 27
Branch analysis from position: 17
2 jumps found. (Code = 78) Position 1 = 18, Position 2 = 27
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
Branch analysis from position: 15
filename:       /in/acY4q
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
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_DIM_R                                      ~4      <array>, 'three'
          1        ECHO                                                     ~4
    5     2        ASSIGN                                                   !0, <array>
    9     3      > FE_RESET_R                                       $6      !0, ->15
          4    > > FE_FETCH_R                                               $6, !1, ->15
   10     5    >   QM_ASSIGN                                        ~7      !1
          6        FETCH_LIST_R                                     $8      ~7, 0
          7        ASSIGN                                                   !2, $8
          8        FETCH_LIST_R                                     $10     ~7, 1
          9        ASSIGN                                                   !3, $10
         10        FREE                                                     ~7
   11    11        ECHO                                                     !2
         12        ECHO                                                     '+'
         13        ECHO                                                     !3
    9    14      > JMP                                                      ->4
         15    >   FE_FREE                                                  $6
   15    16      > FE_RESET_R                                       $12     !0, ->27
         17    > > FE_FETCH_R                                               $12, $13, ->27
         18    >   FETCH_LIST_R                                     $14     $13, 0
         19        ASSIGN                                                   !2, $14
         20        FETCH_LIST_R                                     $16     $13, 1
         21        ASSIGN                                                   !3, $16
         22        FREE                                                     $13
   16    23        ECHO                                                     !2
         24        ECHO                                                     '+'
         25        ECHO                                                     !3
   15    26      > JMP                                                      ->17
         27    >   FE_FREE                                                  $12
   17    28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.3 ms | 1395 KiB | 13 Q