3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function f($a, $k){return var_dump($a, true);} $ref = 'ref'; echo f(['no' => 'nope', 'yep' => &$ref], 'yep');
based on C12mc
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2ijdN
function name:  (null)
number of ops:  10
compiled vars:  !0 = $ref
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NOP                                                      
   5     1        ASSIGN                                                   !0, 'ref'
   6     2        INIT_FCALL                                               'f'
         3        INIT_ARRAY                                       ~2      'nope', 'no'
         4        ADD_ARRAY_ELEMENT                                ~2      !0, 'yep'
         5        SEND_VAL                                                 ~2
         6        SEND_VAL                                                 'yep'
         7        DO_FCALL                                      0  $3      
         8        ECHO                                                     $3
         9      > RETURN                                                   1

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

End of function f

Generated using Vulcan Logic Dumper, using php 7.3.0