3v4l.org

run code in 300+ PHP versions simultaneously
<?php function someFunction(int $someVariable): bool { if ($someVariable > 10) { return true; } else if ($someVariable < -10) { return false; } return null; } var_dump(someFunction("11")); var_dump(someFunction("-11"));

preferences:
54.49 ms | 402 KiB | 5 Q