3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
171 ms | 3345 KiB | 14 Q