- Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.25
- Parse error: syntax error, unexpected '{' in /in/qNvD4 on line 15
Process exited with code 255.
<?php
$pattern = '(?:;?[a-z\d+#.-]+)+'; // Borrowed from @Hamza.
$tags =<<<TAGS
gggd
hfhfghg;hfhdfh
fgjfgjgf;hfhdfh;hfhdfh
fgjgfj;hfhdfh;hfhdfh;hfhdfh
hfhdfh;hfhdfh;hfhdfh;hfhdfh;hfhdfh
hfhdfh;hfhdfh;hfhdfh;hfhdfh;hfhdfh;hfhdfh
hfhdfh;hfhdfh;hfhdfh;hfhdfh;hfhdfh;hfhdfh;hfhdfh
hfhdfh;hfhdfh;hfhdfh;hfhdfh;hfhdfh;hfhdfh;hfhdfh;hfhdfh
TAGS;
if (preg_match('/'.$pattern.'/', $tags) {
var_dump(substr_count($tags, ';'));
}