3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
133.87 ms | 996 KiB | 14 Q