3v4l.org

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

Function byref:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3Dd8C
function name:  byRef
number of ops:  5
compiled vars:  !0 = $number
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    4     1        ASSIGN_OP                                     3          !0, 10
    5     2        SUB                                              ~2      !0, 5
          3      > RETURN                                                   ~2
    6     4*     > RETURN                                                   null

End of function byref

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.37 ms | 1396 KiB | 14 Q