3v4l.org

run code in 300+ PHP versions simultaneously
<?php function homepage_display() { echo "Hello World\n"; } $callback = "homepage_display"; $callback(); // doesn't work call_user_func($callback); // doesn't work either homepage_display(); // works!!
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GuNUN
function name:  (null)
number of ops:  8
compiled vars:  !0 = $callback
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                   !0, 'homepage_display'
    8     1        INIT_DYNAMIC_CALL                                        !0
          2        DO_FCALL                                      0          
    9     3        INIT_USER_CALL                                0          'call_user_func', !0
          4        DO_FCALL                                      0          
   10     5        INIT_FCALL                                               'homepage_display'
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

Function homepage_display:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GuNUN
function name:  homepage_display
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ECHO                                                     'Hello+World%0A'
    5     1      > RETURN                                                   null

End of function homepage_display

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.74 ms | 1397 KiB | 14 Q