3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.32 ms | 1394 KiB | 15 Q