3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $term = "H\o\l+a M~u<n>d)o"; echo eregi_replace( "[\+\-\>\<\(\)\~\*\:\&\|\/\;\\]+", " ", $term ); //echo preg_replace( '#[\+\-\>\<\(\)\~\*\:\&\|\/\;\\]+#', " ", $term );
based on gPuDK
Output for 7.0.0 - 7.3.0rc3
Fatal error: Uncaught Error: Call to undefined function eregi_replace() in /in/Emc0h:3 Stack trace: #0 {main} thrown in /in/Emc0h on line 3
Process exited with code 255.
Output for 5.3.0 - 5.6.28
Deprecated: Function eregi_replace() is deprecated in /in/Emc0h on line 3 H o l a M u n d o
Output for 4.3.0 - 5.0.5, 5.1.1 - 5.2.17
H o l a M u n d o
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/Emc0h on line 4
Process exited with code 255.