3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = 10; $bar = 5; list($foo, $bar) = [$bar, $foo]; var_dump($foo,$bar);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vGSvv
function name:  (null)
number of ops:  14
compiled vars:  !0 = $foo, !1 = $bar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 10
    4     1        ASSIGN                                                   !1, 5
    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        SEND_VAR                                                 !0
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.69 ms | 1385 KiB | 15 Q