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 - 7.2.12
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 - 5.6.38, hhvm-3.10.1 - 3.21.3, 7.0.0 - 7.1.24
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)
Output for hhvm-3.22.0
Notice: Use of undefined constant FILTER_SANTIZE_NUMBER_INT - assumed 'FILTER_SANTIZE_NUMBER_INT' in /in/a2nKP on line -1 Notice: Use of undefined constant FILTER_SANTIZE_NUMBER_INT - assumed 'FILTER_SANTIZE_NUMBER_INT' in /in/a2nKP on line -1 bool(false) bool(false)