3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [1, 2]; $_a = "a"; list($$_a, $b) = $a; var_dump($a, $b);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZNo4P
function name:  (null)
number of ops:  14
compiled vars:  !0 = $a, !1 = $_a, !2 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, 'a'
    5     2        QM_ASSIGN                                        ~5      !0
          3        FETCH_LIST_R                                     $6      ~5, 0
          4        FETCH_W                      local               $7      !1
          5        ASSIGN                                                   $7, $6
          6        FETCH_LIST_R                                     $9      ~5, 1
          7        ASSIGN                                                   !2, $9
          8        FREE                                                     ~5
    6     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !0
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
125.76 ms | 1398 KiB | 15 Q