3v4l.org

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