3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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]);
based on PgWJo
Output for 5.6.38 - 7.3.0rc3