3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(preg_match('/_(\d{6})\.txt/', array('foo_123456.txt', 'test_525532')));
Output for 4.3.3 - 7.1.0
Warning: preg_match() expects parameter 2 to be string, array given in /in/hZmRT on line 2 bool(false)
Output for 4.3.0 - 4.3.2
Notice: Array to string conversion in /in/hZmRT on line 2 int(0)