3v4l.org

run code in 500+ PHP versions simultaneously
<?php /** @return non-empty-array */ function f(array $a, array $b): array { $r = [...$a, ...$b]; /** @psalm-trace $r */; return $r; } var_dump(f([], []));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1LZ7Y
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                                   'var_dump'
          1        INIT_FCALL                                                   'f'
          2        SEND_VAL                                                     <array>
          3        SEND_VAL                                                     <array>
          4        DO_FCALL                                          0  $0      
          5        SEND_VAR                                                     $0
          6        DO_ICALL                                                     
          7      > RETURN                                                       1

Function f:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1LZ7Y
function name:  f
number of ops:  10
compiled vars:  !0 = $a, !1 = $b, !2 = $r
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
    6     2        INIT_ARRAY                                           ~3      
          3        ADD_ARRAY_UNPACK                                     ~3      !0
          4        ADD_ARRAY_UNPACK                                     ~3      !1
          5        ASSIGN                                                       !2, ~3
    8     6        VERIFY_RETURN_TYPE                                           !2
          7      > RETURN                                                       !2
    9     8*       VERIFY_RETURN_TYPE                                           
          9*     > RETURN                                                       null

End of function f

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
116.18 ms | 494 KiB | 11 Q