3v4l.org

run code in 300+ PHP versions simultaneously
<?php function &id(&$var) { return $var; } function ref() { $a = 1; return $a; } // oops, missing & var_dump(id(ref()));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ri5FR
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'id'
          2        INIT_FCALL                                               'ref'
          3        DO_FCALL                                      0  $0      
          4        SEND_VAR_NO_REF                               0          $0
          5        DO_FCALL                                      0  $1      
          6        SEND_VAR                                                 $1
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

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

End of function id

Function ref:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ri5FR
function name:  ref
number of ops:  3
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, 1
          1      > RETURN                                                   !0
          2*     > RETURN                                                   null

End of function ref

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.02 ms | 1001 KiB | 16 Q