3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 1;$b=3; $a = [$a, $b]; $b = $a[0]; $a = $a[1]; var_dump($a, $b);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5dZge
function name:  (null)
number of ops:  14
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1
          1        ASSIGN                                                   !1, 3
    3     2        INIT_ARRAY                                       ~4      !0
          3        ADD_ARRAY_ELEMENT                                ~4      !1
          4        ASSIGN                                                   !0, ~4
    4     5        FETCH_DIM_R                                      ~6      !0, 0
          6        ASSIGN                                                   !1, ~6
    5     7        FETCH_DIM_R                                      ~8      !0, 1
          8        ASSIGN                                                   !0, ~8
    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.0.0


preferences:
182.76 ms | 1394 KiB | 15 Q