3v4l.org

run code in 150+ 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 - 5.6.28, 7.0.0 - 7.1.0
Warning: preg_split(): Unknown modifier '+' in /in/2DSTf on line 3 bool(false)
Output for hhvm-3.10.0 - 3.13.2
Warning: Unknown modifier '+': [[-0-9a-zA-Z.+_]+@[-0-9a-zA-Z.+_]+\.[a-zA-Z]+] 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)