3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = "Hi, I saw you on tv yesterday. On Mon 4 P.M Alice wrote:"; preg_match("/\son(.*)\wrote/Ui",$string,$matches); print_r($matches);
Output for 4.3.0 - 7.2.0
Array ( [0] => on tv yesterday. On Mon 4 P.M Alice wrote [1] => tv yesterday. On Mon 4 P.M Alice )