3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types = 1); class DefaultValue {} define('DEFAULT_VALUE', new DefaultValue); /** * @param int|DefaultValue $a */ function a($a=DEFAULT_VALUE, $b=DEFAULT_VALUE, $c=DEFAULT_VALUE): void { var_dump(func_get_args()); } a(b: 2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZioK2
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'DEFAULT_VALUE'
          2        NEW                                              $0      'DefaultValue'
          3        DO_FCALL                                      0          
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
   14     6        INIT_FCALL                                               'a'
          7        SEND_VAL                                                 2
          8        CHECK_UNDEF_ARGS                                         
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZioK2
function name:  a
number of ops:  8
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV_INIT                                        !0      <const ast>
          1        RECV_INIT                                        !1      <const ast>
          2        RECV_INIT                                        !2      <const ast>
   11     3        INIT_FCALL                                               'var_dump'
          4        FUNC_GET_ARGS                                    ~3      
          5        SEND_VAL                                                 ~3
          6        DO_ICALL                                                 
   12     7      > RETURN                                                   null

End of function a

Class DefaultValue: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.64 ms | 1013 KiB | 16 Q