3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $s = $_SERVER["REQUEST_URI"]; $s = 'http://www.suredeal.com.au/all-deals/deal/3490?edm=10264&email=jo.f%40mpiremedia.com.au&utm_medium=email&utm_campaign=DUPLICATEDTWO+Pillows+Delivered+to+Your+Door+-+Choose+From+Three+Pillow+Types&utm_content=DUPLICATEDTWO+Pillows+Delivered+to+Your+Door+-+Choose+From+Three+Pillow+Types+CID_e497ad0eca52779f8185ed9f05062871&utm_source=Email%20marketing%20software'; preg_match($s,'//deal/\d+?/',$res); print_r($res);
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined index: REQUEST_URI in /in/XidcH on line 2 Warning: preg_match(): Delimiter must not be alphanumeric or backslash in /in/XidcH on line 4
Output for hhvm-3.10.0 - 3.12.0
Notice: Undefined index: REQUEST_URI in /in/XidcH on line 2 Warning: Delimiter must not be alphanumeric or backslash in /in/XidcH on line 4
Output for 5.2.0 - 5.2.17
Notice: Undefined index: REQUEST_URI in /in/XidcH on line 2 Warning: preg_match(): Delimiter must not be alphanumeric or backslash in /in/XidcH on line 4
Output for 4.3.11 - 5.1.6
Notice: Undefined index: REQUEST_URI in /in/XidcH on line 2 Warning: preg_match(): Delimiter must not be alphanumeric or backslash in /in/XidcH on line 4 Array ( )
Output for 4.3.0 - 4.3.10
Notice: Undefined index: REQUEST_URI in /in/XidcH on line 2 Warning: Delimiter must not be alphanumeric or backslash in /in/XidcH on line 4 Array ( )