3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function checkBetween($value, $lowerBound = -INF, $upperBound = INF) { return $value > $lowerBound && $value < $upperBound; } var_dump( checkBetween (1) );
Output for 5.6.0 - 7.1.0
bool(true)
Output for 4.3.2 - 5.5.38
Fatal error: Unsupported operand types in /in/TYkCZ on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Unsupported operand types in /in/TYkCZ on line 3