3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $data = array( 'key1' => 'val1', 'key2' => 'Äèöüß', 'key3' => array ('sub1' => 'Äpfel'), ); var_dump(filter_var_array($data,FILTER_SANITIZE_FULL_SPECIAL_CHARS));
based on 7eF8K
Output for 5.6.7 - 7.1.0
array(3) { ["key1"]=> string(4) "val1" ["key2"]=> string(33) "&Auml;&egrave;&ouml;&uuml;&szlig;" ["key3"]=> array(1) { ["sub1"]=> string(10) "&Auml;pfel" } }
Output for 5.4.18 - 5.5.35
array(3) { ["key1"]=> string(4) "val1" ["key2"]=> string(61) "&Atilde;�&Atilde;&uml;&Atilde;&para;&Atilde;&frac14;&Atilde;�" ["key3"]=> array(1) { ["sub1"]=> string(13) "&Atilde;�pfel" } }
Output for 5.3.3 - 5.4.17
array(3) { ["key1"]=> string(4) "val1" ["key2"]=> string(10) "Äèöüß" ["key3"]=> array(1) { ["sub1"]=> string(6) "Äpfel" } }
Output for 5.2.0 - 5.3.2
Notice: Use of undefined constant FILTER_SANITIZE_FULL_SPECIAL_CHARS - assumed 'FILTER_SANITIZE_FULL_SPECIAL_CHARS' in /in/9GlR9 on line 11 bool(false)
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function filter_var_array() in /in/9GlR9 on line 11
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: filter_var_array() in /in/9GlR9 on line 11
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: filter_var_array() in /in/9GlR9 on line 11
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: filter_var_array() in /in/9GlR9 on line 11