3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php list($x[], $x[], $x[], $x[1]) = ['azul', 'amarelo', 'vermelho', 'verde']; echo $x[3].'-'.$x[1].'-'.$x[2];
based on Dvjkd
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7CcZJ
function name:  (null)
number of ops:  21
compiled vars:  !0 = $x
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   FETCH_LIST                                       $1      <array>, 0
         1        ASSIGN_DIM                                               !0
         2        OP_DATA                                                  $1
         3        FETCH_LIST                                       $3      <array>, 1
         4        ASSIGN_DIM                                               !0
         5        OP_DATA                                                  $3
         6        FETCH_LIST                                       $5      <array>, 2
         7        ASSIGN_DIM                                               !0
         8        OP_DATA                                                  $5
         9        FETCH_LIST                                       $7      <array>, 3
        10        ASSIGN_DIM                                               !0, 1
        11        OP_DATA                                                  $7
   4    12        FETCH_DIM_R                                      $9      !0, 3
        13        CONCAT                                           ~10     $9, '-'
        14        FETCH_DIM_R                                      $11     !0, 1
        15        CONCAT                                           ~12     ~10, $11
        16        CONCAT                                           ~13     ~12, '-'
        17        FETCH_DIM_R                                      $14     !0, 2
        18        CONCAT                                           ~15     ~13, $14
        19        ECHO                                                     ~15
        20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0