3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $input='a³'; $text=str_replace("\n\n", "z000" ,$text); $text=str_replace("\n", "z111" ,$text); $text=filter_var($text,FILTER_SANITIZE_SPECIAL_CHARS, FILTER_FLAG_STRIP_LOW); $text=str_replace("z000", "<br/><br/>" ,$text); $text=str_replace("z111", "<br/>" ,$text); echo $text;
Output for 5.2.0 - 7.1.0
Notice: Undefined variable: text in /in/QZerm on line 4
Output for 5.0.4 - 5.1.6
Notice: Undefined variable: text in /in/QZerm on line 4 Fatal error: Call to undefined function filter_var() in /in/QZerm on line 6
Process exited with code 255.
Output for 5.0.0 - 5.0.3
Notice: Undefined variable: text in /in/QZerm on line 4 Fatal error: Call to undefined function filter_var() in /in/QZerm on line 6
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Notice: Undefined variable: text in /in/QZerm on line 4 Fatal error: Call to undefined function: filter_var() in /in/QZerm on line 6
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Notice: Undefined variable: text in /in/QZerm on line 4 Fatal error: Call to undefined function: filter_var() in /in/QZerm on line 6
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Notice: Undefined variable: text in /in/QZerm on line 4 Fatal error: Call to undefined function: filter_var() in /in/QZerm on line 6