3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_export(filter_var(false, FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE )); var_export(filter_var("foo", FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE)); var_export(filter_var(false, FILTER_VALIDATE_BOOLEAN, )); var_export(filter_var("foo", FILTER_VALIDATE_BOOLEAN, ));
Output for 5.3.0 - 5.5.2
Parse error: syntax error, unexpected ')' in /in/PmR2L on line 5
Process exited with code 255.