3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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;hf!!@hdfh;hfhdfh;hfhdfh;hfhdfh;hfhdfh TAGS; if (preg_match('/'.$pattern.'/', $tags)) { var_dump(substr_count($tags, ';')); }
Output for 4.3.11 - 4.4.1, 4.4.3 - 5.1.1, 5.1.3 - 5.6.28, 7.0.0 - 7.1.0
Warning: preg_match(): Compilation failed: missing ) at offset 20 in /in/LadQG on line 16
Output for 4.3.0 - 4.3.10, hhvm-3.10.0 - 3.12.0
Warning: Compilation failed: missing ) at offset 20 in /in/LadQG on line 16
Output for 4.4.2, 5.1.2
Warning: preg_match(): Compilation failed: missing ) at offset 20 in /in/LadQG on line 17