3v4l.org

run code in 500+ PHP versions simultaneously
<?php $a = 123; $b = 0; $c = [ $a, &$b ]; function a($a, &$b) { $b = $a; } a(...$c); var_dump($b === $a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5EBnU
function name:  (null)
number of ops:  14
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 123
    4     1        ASSIGN                                                       !1, 0
    5     2        INIT_ARRAY                                           ~5      !0
          3        ADD_ARRAY_ELEMENT                                    ~5      !1
          4        ASSIGN                                                       !2, ~5
   12     5        INIT_FCALL                                                   'a'
          6        SEND_UNPACK                                                  !2
          7        CHECK_UNDEF_ARGS                                             
          8        DO_FCALL                                          0          
   14     9        INIT_FCALL                                                   'var_dump'
         10        IS_IDENTICAL                                         ~8      !1, !0
         11        SEND_VAL                                                     ~8
         12        DO_ICALL                                                     
         13      > RETURN                                                       1

Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5EBnU
function name:  a
number of ops:  4
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
    9     2        ASSIGN                                                       !1, !0
   10     3      > RETURN                                                       null

End of function a

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
204.44 ms | 2242 KiB | 15 Q