3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array('a', 'b', 'c', 'd'); list(, $b, $c) = $arr; var_dump($b, $c); list(, , $c) = $arr; var_dump($c); list(, , $c, $d) = $arr; var_dump($c, $d); list(, , , $d) = $arr; var_dump($d);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PrRGK
function name:  (null)
number of ops:  36
compiled vars:  !0 = $arr, !1 = $b, !2 = $c, !3 = $d
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   QM_ASSIGN                                                !0
   3     1        ASSIGN_BW_OR                                  0  ~5      !0
         2        FETCH_LIST_R                                     $6      ~5, 1
         3        QM_ASSIGN                                                !1
         4        FETCH_LIST_R                                     $8      ~5, 2
         5        QM_ASSIGN                                                !2
         6        FREE                                                     ~5
   4     7        INIT_FCALL                                               'var_dump'
         8        SEND_VAR                                                 !1
         9        SEND_VAR                                                 !2
        10        DO_ICALL                                                 
   5    11        ASSIGN_BW_OR                                  0  ~11     !0
        12        FETCH_LIST_R                                     $12     ~11, 2
        13        QM_ASSIGN                                                !2
        14        FREE                                                     ~11
   6    15        INIT_FCALL                                               'var_dump'
        16        SEND_VAR                                                 !2
        17        DO_ICALL                                                 
   7    18        ASSIGN_BW_OR                                  0  ~15     !0
        19        FETCH_LIST_R                                     $16     ~15, 2
        20        QM_ASSIGN                                                !2
        21        FETCH_LIST_R                                     $18     ~15, 3
        22        QM_ASSIGN                                                !3
        23        FREE                                                     ~15
   8    24        INIT_FCALL                                               'var_dump'
        25        SEND_VAR                                                 !2
        26        SEND_VAR                                                 !3
        27        DO_ICALL                                                 
   9    28        ASSIGN_BW_OR                                  0  ~21     !0
        29        FETCH_LIST_R                                     $22     ~21, 3
        30        QM_ASSIGN                                                !3
        31        FREE                                                     ~21
  10    32        INIT_FCALL                                               'var_dump'
        33        SEND_VAR                                                 !3
        34        DO_ICALL                                                 
        35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
14.31 ms | 412 KiB | 7 Q