3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "01/11/2016 Aggregated Micro Power Holdings plc (AMPH) JPMorgan Global Growth & Income plc (JPGI) Murray Income Trust plc (MUT)"; preg_match('/(\d+\/\d+\/\d+)\s/', $string, $match); $date = trim($match[0]); $string = substr($string,strlen($match[0])); preg_match_all('/\G(?P<name>.*)?\((?P<abbr>.*)?\)/', $string, $firms); //$firms = preg_split('/\)\s/',$string); var_dump($firms);

preferences:
55.79 ms | 402 KiB | 5 Q