3v4l.org

run code in 500+ PHP versions simultaneously
<?php //código com o problema function &olaMundoRef(){ return 'Ola mundo'. PHP_EOL; } //código sem problema function &olaMundo(){ $x = 'Ola mundo'; return $x; } echo olaMundoRef(); echo olaMundo();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZbXSD
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                                   'olamundoref'
          1        DO_FCALL                                          0  $0      
          2        ECHO                                                         $0
   14     3        INIT_FCALL                                                   'olamundo'
          4        DO_FCALL                                          0  $1      
          5        ECHO                                                         $1
          6      > RETURN                                                       1

Function olamundoref:
Finding entry points
Branch analysis from position: 0
Return found
filename:       /in/ZbXSD
function name:  olaMundoRef
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E > > RETURN_BY_REF                                                'Ola+mundo%0A'
    5     1*     > RETURN_BY_REF                                                null

End of function olamundoref

Function olamundo:
Finding entry points
Branch analysis from position: 0
Return found
filename:       /in/ZbXSD
function name:  olaMundo
number of ops:  3
compiled vars:  !0 = $x
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    9     0  E >   ASSIGN                                                       !0, 'Ola+mundo'
   10     1      > RETURN_BY_REF                                                !0
   11     2*     > RETURN_BY_REF                                                null

End of function olamundo

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
224.86 ms | 3360 KiB | 15 Q