3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $testString = "http://beta.homespotter.com/signature?utm_something=fridayTest3"; $utmName; if (preg_match("/?utm_(.+)=/", $testString, $matches)) { echo "Match was found <br />"; echo $matches[0]; } ?>
based on 6OrX4
Output for 5.1.0 - 7.2.0
Warning: preg_match(): Compilation failed: nothing to repeat at offset 0 in /in/UFOWE on line 4
Output for 5.0.4 - 5.0.5
Notice: Undefined variable: utmName in /in/UFOWE on line 3 Warning: preg_match(): Compilation failed: nothing to repeat at offset 0 in /in/UFOWE on line 4
Output for 4.3.11 - 5.0.3
Notice: Undefined variable: utmName in /in/UFOWE on line 3 Warning: preg_match(): Compilation failed: nothing to repeat at offset 0 in /in/UFOWE on line 4
Output for 4.3.0 - 4.3.10
Notice: Undefined variable: utmName in /in/UFOWE on line 3 Warning: Compilation failed: nothing to repeat at offset 0 in /in/UFOWE on line 4