3v4l.org

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

Function %00name%5C%7Bclosure%7D%2Fin%2F4QGQJ%3A4%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4QGQJ
function name:  Name\{closure}
number of ops:  5
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                                              'Name%5C%7Bclosure%7D'
          2        SEND_VAL_EX                                              'Name%5C%7Bclosure%7D'
          3        DO_FCALL                                      0          
          4      > RETURN                                                   null

End of function %00name%5C%7Bclosure%7D%2Fin%2F4QGQJ%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/4QGQJ
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%2F4QGQJ%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:
174.4 ms | 1395 KiB | 17 Q