3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $search_term = 'cloudhearts24@hotmail.com'; $search_term = str_replace('@', ' ', $search_term); preg_match_all('/"(?:\\\\.|[^\\\\"])*"|\S+|\-+/', $search_term, $matches); print_r($matches);
based on FWjL4
Output for 5.6.0 - 7.3.0alpha1
Array ( [0] => Array ( [0] => cloudhearts24 [1] => hotmail.com ) )