3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $addr = "http://www.example.com/?pk_lol=VAgin&utm_campaign=printemps&utm_medium=e-mail&utm_source=newsletter1&utm_content=lien-en-haut"; $pattern ="/utm_campaign=.[^&]+)?(utm_medium=.[^&]+)?(utm_source=.[^&]+)?/i"; preg_match($pattern, $addr, $result); print_r($result);
Output for 5.2.3 - 5.6.28, 7.0.0 - 7.1.0
Warning: preg_match(): Compilation failed: unmatched parentheses at offset 19 in /in/4RAFf on line 7
Output for hhvm-3.10.0 - 3.12.0
Warning: Compilation failed: unmatched parentheses at offset 19 in /in/4RAFf on line 7
Output for 5.2.0 - 5.2.2
<br /> <b>Warning</b>: preg_match() [<a href='function.preg-match'>function.preg-match</a>]: Compilation failed: unmatched parentheses at offset 19 in <b>/in/4RAFf</b> on line <b>7</b><br />
Output for 4.4.3 - 5.1.6
<br /> <b>Warning</b>: preg_match() [<a href='function.preg-match'>function.preg-match</a>]: Compilation failed: unmatched parentheses at offset 19 in <b>/in/4RAFf</b> on line <b>7</b><br /> Array ( )
Output for 4.3.11 - 4.4.2
<br /> <b>Warning</b>: preg_match(): Compilation failed: unmatched parentheses at offset 19 in <b>/in/4RAFf</b> on line <b>7</b><br /> Array ( )
Output for 4.3.0 - 4.3.10
<br /> <b>Warning</b>: Compilation failed: unmatched parentheses at offset 19 in <b>/in/4RAFf</b> on line <b>7</b><br /> Array ( )