3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $port = "aba"; if (!$port || $port > 0xffff) { echo "Invalid port"; } else { echo "Valid port."; }
Output for 4.3.0 - 7.2.0
Valid port.