3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function ref_func(&$val) { var_dump($val); } ref_func(range(1, 9));
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/4K1aO
function name:  (null)
number of ops:  9
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   NOP                                                      
   6     1        INIT_FCALL                                               'ref_func'
         2        INIT_FCALL                                               'range'
         3        SEND_VAL                                                 1
         4        SEND_VAL                                                 9
         5        DO_ICALL                                         $0      
         6        SEND_VAR_NO_REF                               7          $0
         7        DO_FCALL                                      0          
         8      > RETURN                                                   1

Function ref_func:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/4K1aO
function name:  ref_func
number of ops:  5
compiled vars:  !0 = $val
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   RECV                                             !0      
   4     1        INIT_FCALL                                               'var_dump'
         2        SEND_VAR                                                 !0
         3        DO_ICALL                                                 
   5     4      > RETURN                                                   null

End of function ref_func

Generated using Vulcan Logic Dumper, using php 7.3.0