3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $num = array( 2154151, '55454', '.04484787', 'bloadh', '6564.465.654', '5653.54' ); foreach($numbers as $num){ if(!$num = filter_var($num, FILTER_VALIDATE_FLOAT))){ echo "$num is invalid"; }else{ echo "$num is valid"; } } ?>
Output for 5.3.0 - 5.4.30
Parse error: syntax error, unexpected ')' in /in/R6bRk on line 8
Process exited with code 255.