3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.99 ms | 1394 KiB | 17 Q