3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $sub_string = 'rayy@'; $str = 'rayy@example.com'; if (substr($str, 0, strlen($sub_string)) == $sub_string) { $str = substr($str, strlen($sub_string)); } echo $str; ?>
Output for 4.3.0 - 7.1.0
example.com