3v4l.org

run code in 500+ PHP versions simultaneously
<?php function f(int $i1 = null, ?int $i2, int|null $i3){ $i4 = func_get_args()[3] ?? null; var_dump($i1,$i2,$i3, $i4); } f(null,null,null,null);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PImcf
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                                   'f'
          1        SEND_VAL                                                     null
          2        SEND_VAL                                                     null
          3        SEND_VAL                                                     null
          4        SEND_VAL                                                     null
          5        DO_FCALL                                          0          
          6      > RETURN                                                       1

Function f:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PImcf
function name:  f
number of ops:  15
compiled vars:  !0 = $i1, !1 = $i2, !2 = $i3, !3 = $i4
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
          2        RECV                                                 !2      
    4     3        FUNC_GET_ARGS                                        ~4      
          4        FETCH_DIM_IS                                         ~5      ~4, 3
          5        COALESCE                                             ~6      ~5
          6        QM_ASSIGN                                            ~6      null
          7        ASSIGN                                                       !3, ~6
    5     8        INIT_FCALL                                                   'var_dump'
          9        SEND_VAR                                                     !0
         10        SEND_VAR                                                     !1
         11        SEND_VAR                                                     !2
         12        SEND_VAR                                                     !3
         13        DO_ICALL                                                     
    6    14      > RETURN                                                       null

End of function f

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
158.53 ms | 2005 KiB | 15 Q