3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.98 ms | 1392 KiB | 13 Q