3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = "foo"; $bar = "bar"; $baz = [&$foo, $bar]; var_dump($baz);//array(2) { [0]=> &string(3) "foo" [1]=> string(3) "bar" } list($one, $two) = $baz; var_dump($one, $two);//string(3) "foo"<--[SPOILED] string(3) "bar"
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cFLjs
function name:  (null)
number of ops:  19
compiled vars:  !0 = $foo, !1 = $bar, !2 = $baz, !3 = $one, !4 = $two
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'foo'
    3     1        ASSIGN                                                   !1, 'bar'
    4     2        INIT_ARRAY                                       ~7      !0
          3        ADD_ARRAY_ELEMENT                                ~7      !1
          4        ASSIGN                                                   !2, ~7
    5     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !2
          7        DO_ICALL                                                 
    6     8        QM_ASSIGN                                        ~10     !2
          9        FETCH_LIST_R                                     $11     ~10, 0
         10        ASSIGN                                                   !3, $11
         11        FETCH_LIST_R                                     $13     ~10, 1
         12        ASSIGN                                                   !4, $13
         13        FREE                                                     ~10
    7    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !3
         16        SEND_VAR                                                 !4
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.72 ms | 1394 KiB | 15 Q