3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = "0 hits to the body so far!"; $res = preg_match("/(\d)/",$string,$thang); var_dump($res); var_dump($thang);
Output for 4.3.0 - 7.1.0
int(1) array(2) { [0]=> string(1) "0" [1]=> string(1) "0" }