3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $matches=array(); preg_match("/ [a-z,~ ]*/i","php hhvm apache",$matches); var_dump($matches);
based on LCAnI
Output for 4.3.0 - 5.2.6, 5.2.8 - 5.6.26, hhvm-3.10.0, 7.0.0 - 7.1.0
array(1) { [0]=> string(12) " hhvm apache" }
Output for 5.2.7, hhvm-3.12.0 - 3.13.2

Process exited with code 137.