3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public static function hello($userAgent, $username, $apiToken, $method, $path, $data) { print_r(func_get_args()); echo "Hello"; } } $caller = function($userAgent, $username, $apiToken, $method, $path, $data){ Test::hello($userAgent, $username, $apiToken, $method, $path, $data); }; $caller(1,2,3,4,5,6);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eVTqf
function name:  (null)
number of ops:  11
compiled vars:  !0 = $caller
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FeVTqf%3A12%240'
          1        ASSIGN                                                   !0, ~1
   17     2        INIT_DYNAMIC_CALL                                        !0
          3        SEND_VAL_EX                                              1
          4        SEND_VAL_EX                                              2
          5        SEND_VAL_EX                                              3
          6        SEND_VAL_EX                                              4
          7        SEND_VAL_EX                                              5
          8        SEND_VAL_EX                                              6
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FeVTqf%3A12%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eVTqf
function name:  {closure}
number of ops:  15
compiled vars:  !0 = $userAgent, !1 = $username, !2 = $apiToken, !3 = $method, !4 = $path, !5 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV                                             !3      
          4        RECV                                             !4      
          5        RECV                                             !5      
   13     6        INIT_STATIC_METHOD_CALL                                  'Test', 'hello'
          7        SEND_VAR                                                 !0
          8        SEND_VAR                                                 !1
          9        SEND_VAR                                                 !2
         10        SEND_VAR                                                 !3
         11        SEND_VAR                                                 !4
         12        SEND_VAR                                                 !5
         13        DO_FCALL                                      0          
   14    14      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FeVTqf%3A12%240

Class Test:
Function hello:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eVTqf
function name:  hello
number of ops:  12
compiled vars:  !0 = $userAgent, !1 = $username, !2 = $apiToken, !3 = $method, !4 = $path, !5 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV                                             !3      
          4        RECV                                             !4      
          5        RECV                                             !5      
    7     6        INIT_FCALL                                               'print_r'
          7        FUNC_GET_ARGS                                    ~6      
          8        SEND_VAL                                                 ~6
          9        DO_ICALL                                                 
    8    10        ECHO                                                     'Hello'
    9    11      > RETURN                                                   null

End of function hello

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.29 ms | 1400 KiB | 15 Q