3v4l.org

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

Function a:
Finding entry points
Branch analysis from position: 0
Return found
filename:       /in/iMIEk
function name:  a
number of ops:  3
compiled vars:  !0 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1      > RETURN_BY_REF                                            !0
    6     2*     > RETURN_BY_REF                                            null

End of function a

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
200.78 ms | 942 KiB | 18 Q