3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $input = 'Nome: sad \n<br>\nEmail: god@god.sky\n<br>\nTelefone: 13123'; $pattern = '#Email:\s*([^\s<]+)#i'; preg_match($pattern, $input, $match); var_dump($match); echo "<br/>"; echo $match[1];
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(2) { [0]=> string(20) "Email: god@god.sky\n" [1]=> string(13) "god@god.sky\n" } <br/>god@god.sky\n