3v4l.org

run code in 500+ PHP versions simultaneously
<?php $someArray = ['foo', 'bar', 'ipsum', ['baz', 'dolor']]; list($listedOne, , $listedTwo['two'], list($listedThree, $listedFour['four'])) = $someArray; var_dump(get_defined_vars());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8TeXR
function name:  (null)
number of ops:  21
compiled vars:  !0 = $someArray, !1 = $listedOne, !2 = $listedTwo, !3 = $listedThree, !4 = $listedFour
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    4     1        QM_ASSIGN                                            ~6      !0
          2        FETCH_LIST_R                                         $7      ~6, 0
          3        ASSIGN                                                       !1, $7
          4        FETCH_LIST_R                                         $9      ~6, 2
          5        ASSIGN_DIM                                                   !2, 'two'
          6        OP_DATA                                                      $9
          7        FETCH_LIST_R                                         $11     ~6, 3
          8        FETCH_LIST_R                                         $12     $11, 0
          9        ASSIGN                                                       !3, $12
         10        FETCH_LIST_R                                         $14     $11, 1
         11        ASSIGN_DIM                                                   !4, 'four'
         12        OP_DATA                                                      $14
         13        FREE                                                         $11
         14        FREE                                                         ~6
    6    15        INIT_FCALL                                                   'var_dump'
         16        INIT_FCALL                                                   'get_defined_vars'
         17        DO_ICALL                                             $16     
         18        SEND_VAR                                                     $16
         19        DO_ICALL                                                     
         20      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
168.82 ms | 3131 KiB | 15 Q