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 - 5.6.38, hhvm-3.10.1 - 3.22.0, 7.0.0 - 7.3.1
err