3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = 'value that I {want}, vs value "I do {NOT} want" '; //$str = preg_replace("/\".*\"/U","",$str); preg_match_all("("|').*?\1(*SKIP)(*FAIL)|\{(?:[^{}]|(?R))*\}",$str,$matches); print_r($matches);
Output for 5.4.0 - 5.4.22
Parse error: syntax error, unexpected '').*?\1(*SKIP)(*FAIL)|\{(?:[^{' (T_ENCAPSED_AND_WHITESPACE) in /in/hhtpI on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE in /in/hhtpI on line 4
Process exited with code 255.