3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(filter_var(FILTER_SANTIZE_NUMBER_INT, "0"), filter_var(FILTER_SANTIZE_NUMBER_INT, "-1"));
Output for 7.2.0
Warning: Use of undefined constant FILTER_SANTIZE_NUMBER_INT - assumed 'FILTER_SANTIZE_NUMBER_INT' (this will throw an Error in a future version of PHP) in /in/a2nKP on line 3 Warning: Use of undefined constant FILTER_SANTIZE_NUMBER_INT - assumed 'FILTER_SANTIZE_NUMBER_INT' (this will throw an Error in a future version of PHP) in /in/a2nKP on line 3 bool(false) bool(false)
Output for 5.3.18 - 7.1.10
Notice: Use of undefined constant FILTER_SANTIZE_NUMBER_INT - assumed 'FILTER_SANTIZE_NUMBER_INT' in /in/a2nKP on line 3 Notice: Use of undefined constant FILTER_SANTIZE_NUMBER_INT - assumed 'FILTER_SANTIZE_NUMBER_INT' in /in/a2nKP on line 3 bool(false) bool(false)