3v4l.org

run code in 300+ PHP versions simultaneously
<?php function adjacentElementsProduct($inputArray) { $count = count($inputArray); if($count < 2 || $count > 10){ return false; } foreach($inputArray as $array){ if($array < - 1000 || $array > 1000){ return false; } } } echo adjacentElementsProduct([1001]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NMOdf
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   INIT_FCALL                                               'adjacentelementsproduct'
          1        SEND_VAL                                                 <array>
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
          4      > RETURN                                                   1

Function adjacentelementsproduct:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 9
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 19
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 19
Branch analysis from position: 11
2 jumps found. (Code = 47) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 15
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
Branch analysis from position: 7
filename:       /in/NMOdf
function name:  adjacentElementsProduct
number of ops:  21
compiled vars:  !0 = $inputArray, !1 = $count, !2 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        COUNT                                            ~3      !0
          2        ASSIGN                                                   !1, ~3
    7     3        IS_SMALLER                                       ~5      !1, 2
          4      > JMPNZ_EX                                         ~5      ~5, ->7
          5    >   IS_SMALLER                                       ~6      10, !1
          6        BOOL                                             ~5      ~6
          7    > > JMPZ                                                     ~5, ->9
    8     8    > > RETURN                                                   <false>
   11     9    > > FE_RESET_R                                       $7      !0, ->19
         10    > > FE_FETCH_R                                               $7, !2, ->19
   13    11    >   IS_SMALLER                                       ~8      !2, -1000
         12      > JMPNZ_EX                                         ~8      ~8, ->15
         13    >   IS_SMALLER                                       ~9      1000, !2
         14        BOOL                                             ~8      ~9
         15    > > JMPZ                                                     ~8, ->18
   14    16    >   FE_FREE                                                  $7
         17      > RETURN                                                   <false>
   11    18    > > JMP                                                      ->10
         19    >   FE_FREE                                                  $7
   19    20      > RETURN                                                   null

End of function adjacentelementsproduct

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.72 ms | 1399 KiB | 14 Q