3v4l.org

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

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

End of function byref

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
188.51 ms | 1396 KiB | 16 Q