3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $dirty_html = array('name' => $_POST['name'], 'comment' => $_POST['comment']); $config = HTMLPurifier_Config::createDefault(); $purifier = new HTMLPurifier($config); $clean_html = $purifier->purify($dirty_html);
Output for 7.0.0 - 7.1.0
Notice: Undefined index: name in /in/Tvs5n on line 2 Notice: Undefined index: comment in /in/Tvs5n on line 2 Fatal error: Uncaught Error: Class 'HTMLPurifier_Config' not found in /in/Tvs5n:4 Stack trace: #0 {main} thrown in /in/Tvs5n on line 4
Process exited with code 255.
Output for 5.3.0 - 5.6.28
Notice: Undefined index: name in /in/Tvs5n on line 2 Notice: Undefined index: comment in /in/Tvs5n on line 2 Fatal error: Class 'HTMLPurifier_Config' not found in /in/Tvs5n on line 4
Process exited with code 255.
Output for 5.0.0 - 5.2.17
Notice: Undefined index: name in /in/Tvs5n on line 2 Notice: Undefined index: comment in /in/Tvs5n on line 2 Fatal error: Class 'HTMLPurifier_Config' not found in /in/Tvs5n on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Notice: Undefined index: name in /in/Tvs5n on line 2 Notice: Undefined index: comment in /in/Tvs5n on line 2 Fatal error: Undefined class name 'htmlpurifier_config' in /in/Tvs5n on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Notice: Undefined index: name in /in/Tvs5n on line 2 Notice: Undefined index: comment in /in/Tvs5n on line 2 Fatal error: Undefined class name 'htmlpurifier_config' in /in/Tvs5n on line 4