3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Name; class Foo { public static function method () {call_user_func(function () { var_dump(__TRAIT__, __FUNCTION__, __METHOD__); }); } } Foo::method(); var_dump(__METHOD__);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5a9ic
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_STATIC_METHOD_CALL                                  'Name%5CFoo', 'method'
          1        DO_FCALL                                      0          
    9     2        INIT_NS_FCALL_BY_NAME                                    'Name%5Cvar_dump'
          3        SEND_VAL_EX                                              ''
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Function %00name%5C%7Bclosure%7D%2Fin%2F5a9ic%3A4%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5a9ic
function name:  Name\{closure}
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_NS_FCALL_BY_NAME                                    'Name%5Cvar_dump'
          1        SEND_VAL_EX                                              ''
          2        SEND_VAL_EX                                              'Name%5C%7Bclosure%7D'
          3        SEND_VAL_EX                                              'Name%5C%7Bclosure%7D'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   null

End of function %00name%5C%7Bclosure%7D%2Fin%2F5a9ic%3A4%240

Class Name\Foo:
Function method:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5a9ic
function name:  method
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
          0  E >   INIT_NS_FCALL_BY_NAME                                    'Name%5Ccall_user_func'
          1        DECLARE_LAMBDA_FUNCTION                                  '%00name%5C%7Bclosure%7D%2Fin%2F5a9ic%3A4%240'
          2        SEND_VAL_EX                                              ~0
          3        DO_FCALL                                      0          
          4      > RETURN                                                   null

End of function method

End of class Name\Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.25 ms | 1395 KiB | 17 Q