3v4l.org

run code in 300+ PHP versions simultaneously
<?php $thing = 'Tom Dallaway'; $one = strstr($thing, 'D'); $two = strstr($thing, ' ', true); echo $one; echo $two;

preferences:
33.89 ms | 402 KiB | 5 Q