3v4l.org

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

Function takemyreferenceplease:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ii2iK
function name:  takeMyReferencePlease
number of ops:  5
compiled vars:  !0 = $myReference
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    5     4      > RETURN                                                   null

End of function takemyreferenceplease

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.63 ms | 1397 KiB | 17 Q