3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $input = "michael@test.com dave@cheese.com milkman@serverdouche.com"; $email = preg_split("/[-0-9a-zA-Z.+_]+@[-0-9a-zA-Z.+_]+\.[a-zA-Z]+/g", $input); var_dump($email);
based on SHSWg
Output for 4.3.11 - 7.1.0
Warning: preg_split(): Unknown modifier 'g' in /in/s2hKq on line 6 bool(false)
Output for 4.3.0 - 4.3.10
Warning: Unknown modifier 'g' in /in/s2hKq on line 6 bool(false)