3v4l.org

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

Function l:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/D9PjW
function name:  l
number of ops:  4
compiled vars:  !0 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        CONCAT                                           ~1      !0, '%0A'
          2        ECHO                                                     ~1
    4     3      > RETURN                                                   null

End of function l

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.57 ms | 1393 KiB | 13 Q