3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { public static function helloworld($a, $b){ print_r(func_get_args()); } } $response = call_user_func_array(array('test', 'helloworld'), array(1, 2)); echo PHP_VERSION;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5pjSp
function name:  (null)
number of ops:  7
compiled vars:  !0 = $response
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_USER_CALL                                0          'call_user_func_array', <array>
          1        SEND_ARRAY                                               <array>
          2        CHECK_UNDEF_ARGS                                         
          3        DO_FCALL                                      0  $1      
          4        ASSIGN                                                   !0, $1
   13     5        ECHO                                                     '8.0.0'
          6      > RETURN                                                   1

Class test:
Function helloworld:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5pjSp
function name:  helloworld
number of ops:  7
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    6     2        INIT_FCALL                                               'print_r'
          3        FUNC_GET_ARGS                                    ~2      
          4        SEND_VAL                                                 ~2
          5        DO_ICALL                                                 
    7     6      > RETURN                                                   null

End of function helloworld

End of class test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.76 ms | 1394 KiB | 15 Q