3v4l.org

run code in 500+ PHP versions simultaneously
<?php function test(string $test): void { print_r(func_get_args()); } test('a', 'b', new stdClass);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/obJcT
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                                   'test'
          1        SEND_VAL                                                     'a'
          2        SEND_VAL                                                     'b'
          3        NEW                                                  $0      'stdClass'
          4        DO_FCALL                                          0          
          5        SEND_VAR                                                     $0
          6        DO_FCALL                                          0          
          7      > RETURN                                                       1

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

End of function test

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
154.65 ms | 1594 KiB | 15 Q