3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(&$arg) { echo "hi\n"; var_dump($arg); } $a = 'bar'; $b =& $a; call_user_func('foo', $b); call_user_func('foo', $a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M2Sfq
function name:  (null)
number of ops:  9
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, 'bar'
    9     1        ASSIGN_REF                                               !1, !0
   11     2        INIT_FCALL                                               'foo'
          3        SEND_USER                                                !1
          4        DO_FCALL                                      0          
   13     5        INIT_FCALL                                               'foo'
          6        SEND_USER                                                !0
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

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

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.56 ms | 1388 KiB | 17 Q