3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $regexp = '/[a-z0-9]{1,25}\s+([0-9]{3,12})\s+[.]*(\-c))/i'; $string = 'asdfghjkl 123456789 ..-x'; var_dump(preg_match($regexp, $string));
Output for 4.3.11 - 7.1.0
Warning: preg_match(): Compilation failed: unmatched parentheses at offset 42 in /in/PZW8Y on line 5 bool(false)
Output for 4.3.0 - 4.3.10
Warning: Compilation failed: unmatched parentheses at offset 42 in /in/PZW8Y on line 5 bool(false)