3v4l.org

run code in 500+ PHP versions simultaneously
<?php define('CL', function () { echo "hello\n"; }); class Foo { public const \Closure CL = CL; } (Foo::CL)();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/F2VKn
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                                                     'CL'
          2        DECLARE_LAMBDA_FUNCTION                              ~0      [0]
          3        SEND_VAL                                                     ~0
          4        DO_ICALL                                                     
   10     5        FETCH_CLASS_CONSTANT                                 ~2      'Foo', 'CL'
          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/F2VKn
function name:  {closure:/in/F2VKn:3}
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ECHO                                                         'hello%0A'
          1      > RETURN                                                       null

End of Dynamic Function 0

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
187.45 ms | 1570 KiB | 14 Q