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.3.28 - 5.3.29, 5.4.20 - 5.6.28, 7.0.0 - 7.1.0
Warning: preg_match(): Unknown modifier '?' in /in/Bnr7S on line 7
Output for hhvm-3.10.0 - 3.12.0
Warning: Unknown modifier '?': [/(utm_campaign=.[^&]+)/?/(utm_medium=.[^&]+)/?/(utm_source=.[^&]+)/?//i] in /in/Bnr7S on line 7
Output for 5.2.0 - 5.3.27, 5.4.0 - 5.4.19
Warning: preg_match(): Unknown modifier '?' in /in/StMDE on line 7
Output for 4.3.11 - 5.1.6
Warning: preg_match(): Unknown modifier '?' in /in/StMDE on line 7 Array ( )
Output for 4.3.1 - 4.3.10
Warning: Unknown modifier '?' in /in/StMDE on line 7 Array ( )
Output for 4.3.0
Warning: Unknown modifier '?' in /in/Bnr7S on line 7 Array ( )