3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = ['adsd.pdf', 'adsd_1.pdf', 'asdasd.docx']; $b = 'adsd'; for($i = 0; $i < count($a); $i++) { print_r(preg_match('/\$' . $b . '_' . '/', $a[$i])); }
based on ATh4C
Output for 5.5.0 - 7.2.6
000