3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(filter_var(new stdclass, "d"));
Output for 7.0.0 - 7.2.0
Warning: filter_var() expects parameter 2 to be integer, string given in /in/M9f06 on line 3 NULL
Output for 5.3.18 - 5.6.28
Warning: filter_var() expects parameter 2 to be long, string given in /in/M9f06 on line 3 NULL