3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $my_str = 'The quick brown fox jumps\n\r\t over the lazy dog'; ereg_replace("[[:cntrl:]]", "", $my_str); echo $my_str; ?>
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function ereg_replace() in /in/dsh8F:3 Stack trace: #0 {main} thrown in /in/dsh8F on line 3
Process exited with code 255.
Output for 4.3.0 - 5.2.17, hhvm-3.10.0 - 3.13.2
The quick brown fox jumps\n\r\t over the lazy dog
Output for 5.3.0 - 5.6.28
Deprecated: Function ereg_replace() is deprecated in /in/dsh8F on line 3 The quick brown fox jumps\n\r\t over the lazy dog