3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $name = 'wykładziny dostępne od ręki'; $name = preg_replace('/[\x00-\x1F\x80-\x9F]/u', '', $node->text()); $name = preg_replace('/[^[:print:]]/u', '', $name); $name = mb_ereg_replace(">", "", $name); var_dump($name);
Output for 7.0.5 - 7.2.0
Notice: Undefined variable: node in /in/ZM7qJ on line 5 Fatal error: Uncaught Error: Call to a member function text() on null in /in/ZM7qJ:5 Stack trace: #0 {main} thrown in /in/ZM7qJ on line 5
Process exited with code 255.
Output for 7.0.0 - 7.0.4
Notice: Undefined variable: node in /in/ZM7qJ on line 5 Fatal error: Uncaught Error: Call to a member function text() on unknown in /in/ZM7qJ:5 Stack trace: #0 {main} thrown in /in/ZM7qJ on line 5
Process exited with code 255.
Output for 5.6.8 - 5.6.28
Notice: Undefined variable: node in /in/ZM7qJ on line 5 Fatal error: Call to a member function text() on null in /in/ZM7qJ on line 5
Process exited with code 255.
Output for 5.3.20 - 5.5.35
Notice: Undefined variable: node in /in/ZM7qJ on line 5 Fatal error: Call to a member function text() on a non-object in /in/ZM7qJ on line 5
Process exited with code 255.