3v4l.org

run code in 500+ PHP versions simultaneously
<?php $href = "test#content"; $href = explode('#', $href); echo $href['0'];

preferences:
78.96 ms | 1542 KiB | 5 Q