3v4l.org

run code in 500+ PHP versions simultaneously
<?php $a = 3; $b = 4; list($b, $a) = [ $a, $b]; echo "a=$a b=$b\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/quZ4n
function name:  (null)
number of ops:  16
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, 3
    3     1        ASSIGN                                                       !1, 4
    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
    7     9        ROPE_INIT                                         5  ~10     'a%3D'
         10        ROPE_ADD                                          1  ~10     ~10, !0
         11        ROPE_ADD                                          2  ~10     ~10, '+b%3D'
         12        ROPE_ADD                                          3  ~10     ~10, !1
         13        ROPE_END                                          4  ~9      ~10, '%0A'
         14        ECHO                                                         ~9
         15      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
166.08 ms | 2063 KiB | 13 Q