3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function f($var) { $var = 3; } $var = 2; f($alias = & $var); echo $var;
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/J3IXu
function name:  (null)
number of ops:  8
compiled vars:  !0 = $var, !1 = $alias
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NOP                                                      
   7     1        ASSIGN                                                   !0, 2
   9     2        INIT_FCALL                                               'f'
         3        ASSIGN_REF                                       $3      !1, !0
         4        SEND_VAR                                                 $3
         5        DO_FCALL                                      0          
  11     6        ECHO                                                     !0
         7      > RETURN                                                   1

Function f:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/J3IXu
function name:  f
number of ops:  3
compiled vars:  !0 = $var
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   RECV                                             !0      
   4     1        ASSIGN                                                   !0, 3
   5     2      > RETURN                                                   null

End of function f

Generated using Vulcan Logic Dumper, using php 7.3.0