3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $emails = str_replace(' ','','ben@wearejh.com, john@wearejh.com, mike@wearejh.com'); $emails = preg_split('[-0-9a-zA-Z.+_]+@[-0-9a-zA-Z.+_]+\.[a-zA-Z]+','leowearejh.com'); var_dump($emails);
Output for 4.3.11 - 7.1.7
Warning: preg_split(): Unknown modifier '+' in /in/2DSTf on line 3 bool(false)
Output for 4.3.0 - 4.3.10
Warning: Unknown modifier '+' in /in/2DSTf on line 3 bool(false)