3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(filter_var('34', FILTER_VAR_INT));
based on 93sAt
Output for 7.2.0
Warning: Use of undefined constant FILTER_VAR_INT - assumed 'FILTER_VAR_INT' (this will throw an Error in a future version of PHP) in /in/97mMu on line 2 Warning: filter_var() expects parameter 2 to be integer, string given in /in/97mMu on line 2 NULL
Output for 7.0.0 - 7.1.10
Notice: Use of undefined constant FILTER_VAR_INT - assumed 'FILTER_VAR_INT' in /in/97mMu on line 2 Warning: filter_var() expects parameter 2 to be integer, string given in /in/97mMu on line 2 NULL
Output for 5.3.20 - 5.6.28
Notice: Use of undefined constant FILTER_VAR_INT - assumed 'FILTER_VAR_INT' in /in/97mMu on line 2 Warning: filter_var() expects parameter 2 to be long, string given in /in/97mMu on line 2 NULL