3v4l.org

run code in 300+ PHP versions simultaneously
<?php function fibo( &$a, &$b ) { $a = &$b; $b = 3; var_dump( $a ); } $a = 1; $b = 2; Fibo( $a, $b ); var_dump( $a, $b );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/djZle
function name:  (null)
number of ops:  11
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   ASSIGN                                                   !0, 1
          1        ASSIGN                                                   !1, 2
   13     2        INIT_FCALL                                               'fibo'
          3        SEND_REF                                                 !0
          4        SEND_REF                                                 !1
          5        DO_FCALL                                      0          
   15     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

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

End of function fibo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.73 ms | 1397 KiB | 16 Q