3v4l.org

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

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rWZdM
function name:  test
number of ops:  4
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV_VARIADIC                                    !0      
    5     1        COUNT                                            ~1      !0
          2        ECHO                                                     ~1
    7     3      > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.78 ms | 1397 KiB | 16 Q