3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array('first', 'foo' => 'second', 'third'); list($a, $b) = $arr; echo "$a $b\n"; foreach($arr as $val) {echo "$val\n";}
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 13, Position 2 = 18
Branch analysis from position: 13
2 jumps found. (Code = 78) Position 1 = 14, Position 2 = 18
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/L1NVA
function name:  (null)
number of ops:  20
compiled vars:  !0 = $arr, !1 = $a, !2 = $b, !3 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        QM_ASSIGN                                        ~5      !0
          2        FETCH_LIST_R                                     $6      ~5, 0
          3        ASSIGN                                                   !1, $6
          4        FETCH_LIST_R                                     $8      ~5, 1
          5        ASSIGN                                                   !2, $8
          6        FREE                                                     ~5
    4     7        ROPE_INIT                                     4  ~11     !1
          8        ROPE_ADD                                      1  ~11     ~11, '+'
          9        ROPE_ADD                                      2  ~11     ~11, !2
         10        ROPE_END                                      3  ~10     ~11, '%0A'
         11        ECHO                                                     ~10
    5    12      > FE_RESET_R                                       $13     !0, ->18
         13    > > FE_FETCH_R                                               $13, !3, ->18
         14    >   NOP                                                      
         15        FAST_CONCAT                                      ~14     !3, '%0A'
         16        ECHO                                                     ~14
         17      > JMP                                                      ->13
         18    >   FE_FREE                                                  $13
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.64 ms | 1394 KiB | 13 Q