3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $obj_name = "ls.UFO00"; $qmgr_name = "UFO00"; $const_balise_qmself = "<QMSELF>"; $obj_pattern = ereg_replace("$qmgr_name(^[:alnum:]+$)",$const_balise_qmself,$obj_name); echo $obj_pattern;
based on dhiRG
Output for 7.0.0 - 7.3.0alpha1
Fatal error: Uncaught Error: Call to undefined function ereg_replace() in /in/PJsUZ:5 Stack trace: #0 {main} thrown in /in/PJsUZ on line 5
Process exited with code 255.
Output for 5.3.22 - 5.6.21
Deprecated: Function ereg_replace() is deprecated in /in/PJsUZ on line 5 ls.UFO00