3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(FILTER_DEFAULT); var_dump(FILTER_SANITIZE_STRING);
Output for 5.2.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
int(516) int(513)
Output for 4.3.0 - 5.1.6
Notice: Use of undefined constant FILTER_DEFAULT - assumed 'FILTER_DEFAULT' in /in/6M8jZ on line 2 string(14) "FILTER_DEFAULT" Notice: Use of undefined constant FILTER_SANITIZE_STRING - assumed 'FILTER_SANITIZE_STRING' in /in/6M8jZ on line 3 string(22) "FILTER_SANITIZE_STRING"