3v4l.org

run code in 300+ PHP versions simultaneously
<?php function dupa() { return array('bbb', 'ccc'); } list($a[], $a[], $a[]) = array(1, 2, 3); list($bbb, $ccc) = dupa(); var_dump($a); var_dump($bbb); var_dump($ccc);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DUWJW
function name:  (null)
number of ops:  26
compiled vars:  !0 = $a, !1 = $bbb, !2 = $ccc
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   FETCH_LIST_R                                     $3      <array>, 0
          1        ASSIGN_DIM                                               !0
          2        OP_DATA                                                  $3
          3        FETCH_LIST_R                                     $5      <array>, 1
          4        ASSIGN_DIM                                               !0
          5        OP_DATA                                                  $5
          6        FETCH_LIST_R                                     $7      <array>, 2
          7        ASSIGN_DIM                                               !0
          8        OP_DATA                                                  $7
    6     9        INIT_FCALL                                               'dupa'
         10        DO_FCALL                                      0  $9      
         11        FETCH_LIST_R                                     $10     $9, 0
         12        ASSIGN                                                   !1, $10
         13        FETCH_LIST_R                                     $12     $9, 1
         14        ASSIGN                                                   !2, $12
         15        FREE                                                     $9
    7    16        INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                                 
    8    19        INIT_FCALL                                               'var_dump'
         20        SEND_VAR                                                 !1
         21        DO_ICALL                                                 
    9    22        INIT_FCALL                                               'var_dump'
         23        SEND_VAR                                                 !2
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Function dupa:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DUWJW
function name:  dupa
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E > > RETURN                                                   <array>
    4     1*     > RETURN                                                   null

End of function dupa

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.64 ms | 1399 KiB | 16 Q