3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $func = function ($a) { call_user_func($a); }; $a = function () { echo 'Hello World'; }; $func($a);
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/0HTkX
function name:  (null)
number of ops:  8
compiled vars:  !0 = $func, !1 = $a
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F0HTkX0x7efcb3932033'
   4     1        ASSIGN                                                   !0, ~2
   6     2        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F0HTkX0x7efcb3932068'
   8     3        ASSIGN                                                   !1, ~4
  10     4        INIT_DYNAMIC_CALL                                        !0
         5        SEND_VAR_EX                                              !1
         6        DO_FCALL                                      0          
         7      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F0HTkX0x7efcb3932033:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/0HTkX
function name:  {closure}
number of ops:  4
compiled vars:  !0 = $a
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   RECV                                             !0      
   3     1        INIT_USER_CALL                                0          'call_user_func', !0
         2        DO_FCALL                                      0          
   4     3      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F0HTkX0x7efcb3932033

Function %00%7Bclosure%7D%2Fin%2F0HTkX0x7efcb3932068:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/0HTkX
function name:  {closure}
number of ops:  2
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   7     0  E >   ECHO                                                     'Hello+World'
   8     1      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F0HTkX0x7efcb3932068

Generated using Vulcan Logic Dumper, using php 7.3.0