3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function func() { $call = function() { echo 'Hello world'; }; $call(); } func();
based on Va3Gj
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YPMC6
function name:  (null)
number of ops:  4
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   NOP                                                      
   9     1        INIT_FCALL                                               'func'
         2        DO_FCALL                                      0          
         3      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FYPMC60x7f870cbce052:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YPMC6
function name:  {closure}
number of ops:  2
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   5     0  E >   ECHO                                                     'Hello+world'
   6     1      > RETURN                                                   null

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

Function func:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YPMC6
function name:  func
number of ops:  5
compiled vars:  !0 = $call
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   4     0  E >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FYPMC60x7f870cbce052'
   6     1        ASSIGN                                                   !0, ~1
   7     2        INIT_DYNAMIC_CALL                                        !0
         3        DO_FCALL                                      0          
   8     4      > RETURN                                                   null

End of function func

Generated using Vulcan Logic Dumper, using php 7.2.0