3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arguments = "ahoj ahoj hello"; var_dump(ereg_replace('\w+', ' ', $arguments)); var_dump(preg_match('/\w+/', ' ', $arguments));
based on 01Zae
Output for 7.0.0 - 7.3.0beta1
Fatal error: Uncaught Error: Call to undefined function ereg_replace() in /in/A2hoL:5 Stack trace: #0 {main} thrown in /in/A2hoL on line 5
Process exited with code 255.
Output for 5.6.0 - 5.6.28
Deprecated: Function ereg_replace() is deprecated in /in/A2hoL on line 5 string(17) "ahoj ahoj hello" int(0)