3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.38 ms | 996 KiB | 14 Q