3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); /** * @param array{a: float, b: float} $params */ function f(array $params): void { mapAtan($params); } /** * @param array<array-key, float> $arr * @return array<array-key, float> */ function mapAtan(array $arr): array { $ret = []; foreach ($arr as $k => $v) { $ret[$k] = atan($v); } return $ret; } f(['a' => 0.5, 'b' => 10, 'c' => new Exception()]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/b7XcPK
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   INIT_FCALL                                               'f'
          1        INIT_ARRAY                                       ~0      0.5, 'a'
          2        ADD_ARRAY_ELEMENT                                ~0      10, 'b'
          3        NEW                                              $1      'Exception'
          4        DO_FCALL                                      0          
          5        ADD_ARRAY_ELEMENT                                ~0      $1, 'c'
          6        SEND_VAL                                                 ~0
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

Function f:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/b7XcPK
function name:  f
number of ops:  5
compiled vars:  !0 = $params
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        INIT_FCALL_BY_NAME                                       'mapAtan'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
    7     4      > RETURN                                                   null

End of function f

Function mapatan:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 11
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 11
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/b7XcPK
function name:  mapAtan
number of ops:  16
compiled vars:  !0 = $arr, !1 = $ret, !2 = $v, !3 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   RECV                                             !0      
   14     1        ASSIGN                                                   !1, <array>
   15     2      > FE_RESET_R                                       $5      !0, ->11
          3    > > FE_FETCH_R                                       ~6      $5, !2, ->11
          4    >   ASSIGN                                                   !3, ~6
   16     5        INIT_FCALL                                               'atan'
          6        SEND_VAR                                                 !2
          7        DO_ICALL                                         $9      
          8        ASSIGN_DIM                                               !1, !3
          9        OP_DATA                                                  $9
   15    10      > JMP                                                      ->3
         11    >   FE_FREE                                                  $5
   18    12        VERIFY_RETURN_TYPE                                       !1
         13      > RETURN                                                   !1
   19    14*       VERIFY_RETURN_TYPE                                       
         15*     > RETURN                                                   null

End of function mapatan

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
128.16 ms | 1403 KiB | 16 Q