3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text= "Hello - How are you?"; $strings = explode(' - ',$text); echo $strings[0]; echo $strings[1];

preferences:
36.09 ms | 402 KiB | 5 Q