3v4l.org

run code in 300+ PHP versions simultaneously
<?php function &returnRef() { $foo = "foo"; return $foo; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/f2skf
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E > > RETURN                                                   1

Function returnref:
Finding entry points
Branch analysis from position: 0
Return found
filename:       /in/f2skf
function name:  returnRef
number of ops:  3
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, 'foo'
    6     1      > RETURN_BY_REF                                            !0
    7     2*     > RETURN_BY_REF                                            null

End of function returnref

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
190.7 ms | 1396 KiB | 13 Q