3v4l.org

run code in 300+ PHP versions simultaneously
<?php $f = function() { $name = 'world'; echo 'Hello, ' . $name; }; call_user_func($f);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UjEBK
function name:  (null)
number of ops:  5
compiled vars:  !0 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   DECLARE_LAMBDA_FUNCTION                          ~1      [0]
          1        ASSIGN                                                   !0, ~1
    7     2        INIT_USER_CALL                                0          'call_user_func', !0
          3        DO_FCALL                                      0          
          4      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UjEBK
function name:  {closure}
number of ops:  4
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'world'
    4     1        CONCAT                                           ~2      'Hello%2C+', !0
          2        ECHO                                                     ~2
    5     3      > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.5 ms | 1432 KiB | 13 Q