3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "tacos ares so good {tag} don't you think {tag} or do you not think?"; function _return_between($tag,$subject) { $split = explode($tag,$subject,3); return isset($split[1])?$split[1]:false; } echo _return_between('{tag}',$string);

preferences:
36.3 ms | 402 KiB | 5 Q