3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f($a, $k){return var_dump($a, true);} $ref = 'ref'; echo f(['no' => 'nope', 'yep' => &$ref], 'yep');
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:  9
compiled vars:  !0 = $ref
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, 'ref'
    6     1        INIT_FCALL                                               'f'
          2        INIT_ARRAY                                       ~2      'nope', 'no'
          3        ADD_ARRAY_ELEMENT                                ~2      !0, 'yep'
          4        SEND_VAL                                                 ~2
          5        SEND_VAL                                                 'yep'
          6        DO_FCALL                                      0  $3      
          7        ECHO                                                     $3
          8      > 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 8.0.0


preferences:
191.55 ms | 1397 KiB | 16 Q