3v4l.org

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

preferences:
38.97 ms | 402 KiB | 5 Q