3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump((int) '4abc4'); $a = (int) 'abc'; $a = -$a; var_dump($a);
based on jhXkW
Output for 4.3.0 - 7.1.0
int(4) int(0)