3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(preg_match('/.*?((tableausoftware.com)|(tableau.com)$/', 'www.tableausoftware.com')); echo "\n"; var_dump(preg_match('/.*?((tableausoftware.com)|(tableau.com)$/', 'www.tableau.com')); var_dump(preg_match('/.*?((tableausoftware.com)|(tableau.com)$/', 'not.tableauprod.net')); var_dump(preg_match('/.*?((tableausoftware.com)|(tableau.com)$/', 'tab.local'));
based on 5M4bS
Output for 4.3.11 - 5.6.28, 7.0.0 - 7.1.0
Warning: preg_match(): Compilation failed: missing ) at offset 40 in /in/0bcB8 on line 3 bool(false) Warning: preg_match(): Compilation failed: missing ) at offset 40 in /in/0bcB8 on line 4 bool(false) Warning: preg_match(): Compilation failed: missing ) at offset 40 in /in/0bcB8 on line 5 bool(false) Warning: preg_match(): Compilation failed: missing ) at offset 40 in /in/0bcB8 on line 6 bool(false)
Output for 4.3.0 - 4.3.10, hhvm-3.10.0 - 3.12.0
Warning: Compilation failed: missing ) at offset 40 in /in/0bcB8 on line 3 bool(false) Warning: Compilation failed: missing ) at offset 40 in /in/0bcB8 on line 4 bool(false) Warning: Compilation failed: missing ) at offset 40 in /in/0bcB8 on line 5 bool(false) Warning: Compilation failed: missing ) at offset 40 in /in/0bcB8 on line 6 bool(false)