3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = "sdfsdf.sdfsdf.sdfsdf.fds.fd.sd@sdf.com"; $pos = explode("@",$tring); echo preg_replace( "/^\.+|\.+$/", "", $pos[0]);
based on hadcW
Output for 5.5.0 - 7.3.0rc3
Notice: Undefined variable: tring in /in/AZZE3 on line 4