3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 1; $b = 2; var_dump($a, $b); ['a' => $b, 'b' => $a] = ['a' => $a, 'b' => $b]; var_dump($a, $b);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qgvEr
function name:  (null)
number of ops:  18
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_FCALL                                               'var_dump'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                                 
    7     6        INIT_ARRAY                                       ~5      !0, 'a'
          7        ADD_ARRAY_ELEMENT                                ~5      !1, 'b'
          8        FETCH_LIST_R                                     $6      ~5, 'a'
          9        ASSIGN                                                   !1, $6
         10        FETCH_LIST_R                                     $8      ~5, 'b'
         11        ASSIGN                                                   !0, $8
         12        FREE                                                     ~5
    8    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !0
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.9 ms | 1394 KiB | 15 Q