3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $start = 5 ; $sql_limit = isset($start) ? filter_var($start, FILTER_VALIDATE_INT) : 0; // Reports offset. var_dump( $sql_limit);
based on Trbpv
Output for 5.6.0 - 7.3.0alpha1
int(5)