3v4l.org

run code in 500+ PHP versions simultaneously
<?php define('Foo', function () { echo "Called"; }); (Foo)();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/u7ZJ1
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'define'
          1        SEND_VAL                                                     'Foo'
          2        DECLARE_LAMBDA_FUNCTION                              ~0      [0]
    5     3        SEND_VAL                                                     ~0
    3     4        DO_ICALL                                                     
    7     5        FETCH_CONSTANT                                       ~2      'Foo'
          6        INIT_DYNAMIC_CALL                                            ~2
          7        DO_FCALL                                          0          
          8      > 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/u7ZJ1
function name:  {closure:/in/u7ZJ1:3}
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   ECHO                                                         'Called'
    5     1      > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
149.76 ms | 1467 KiB | 14 Q