3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arguments = "ahoj_ahoj hello www www"; var_dump(ereg_replace("\w+", ' ', $arguments)); var_dump(preg_replace('/\w+/', ' ', $arguments));
based on sC6eW
Output for 7.0.0 - 7.3.0beta1
Fatal error: Uncaught Error: Call to undefined function ereg_replace() in /in/XTsjV:5 Stack trace: #0 {main} thrown in /in/XTsjV on line 5
Process exited with code 255.
Output for 5.3.0 - 5.6.28
Deprecated: Function ereg_replace() is deprecated in /in/XTsjV on line 5 string(21) "ahoj_ahoj hello " string(9) " "
Output for 4.3.0 - 5.2.17
string(21) "ahoj_ahoj hello " string(9) " "