3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $tsid = '-123'; if (!filter_var($tsid, FILTER_VALIDATE_INT, 0) || (intval($tsid) < 0)) { echo "err"; } else { echo "ok"; }
based on KlaMD
Output for 5.4.0 - 7.2.0
err