3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array('first', 'foo' => 'second', 'third'); list($a, $b) = $arr; echo "$a $b"; foreach($arr as $val) {echo "$val<br>";}
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 17
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 17
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/0e4fl
function name:  (null)
number of ops:  19
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                                     3  ~11     !1
          8        ROPE_ADD                                      1  ~11     ~11, '+'
          9        ROPE_END                                      2  ~10     ~11, !2
         10        ECHO                                                     ~10
    5    11      > FE_RESET_R                                       $13     !0, ->17
         12    > > FE_FETCH_R                                               $13, !3, ->17
         13    >   NOP                                                      
         14        FAST_CONCAT                                      ~14     !3, '%3Cbr%3E'
         15        ECHO                                                     ~14
         16      > JMP                                                      ->12
         17    >   FE_FREE                                                  $13
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.97 ms | 1393 KiB | 13 Q