3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = "value that I {want}, vs value \"I do {NOT} want\". Lets make''S {nested {this {time}}} what's And yes, it's even \"{bullet-{proof}}\" whats :) "; @preg_match_all('~("|\').*?\1(*SKIP)(*FAIL)|\{(?:[^{}]|(?R))*\}~', $input, $m); print_r($m[0]); ?>

preferences:
35.44 ms | 402 KiB | 5 Q