3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=10;$b=20; [$a,$a]=[$b,$a]; echo $a; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8RoqF
function name:  (null)
number of ops:  11
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 10
          1        ASSIGN                                                   !1, 20
    4     2        INIT_ARRAY                                       ~4      !1
          3        ADD_ARRAY_ELEMENT                                ~4      !0
          4        FETCH_LIST_R                                     $5      ~4, 0
          5        ASSIGN                                                   !0, $5
          6        FETCH_LIST_R                                     $7      ~4, 1
          7        ASSIGN                                                   !0, $7
          8        FREE                                                     ~4
    5     9        ECHO                                                     !0
    6    10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.67 ms | 1392 KiB | 13 Q