3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $limit = 'hello'; var_dump( ( (int) $limit > 0 ) ? (int) $limit / 2 : 10 );
based on tpmJU
Output for 4.3.0 - 7.2.0
int(10)