3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "php test - [2013.1 - some string variable]"; list($wanted,$junk) = explode(" - ",$str); echo $wanted."!!";

preferences:
49.93 ms | 402 KiB | 5 Q