3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test = preg_match('/\w+/', '1'); var_dump($test); if ($test) { echo '1'; } else { echo '0'; }
based on Cr09a
Output for 4.3.0 - 7.3.1
int(1) 1