3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php <?php $attrPattern = '/([^=]*)=(["\']??)([^"\']*?)\\2/siU'; $attr = 'target="_parent" data-bar="baz"'; preg_match_all($attrPattern, $attr, $matches, PREG_SET_ORDER ^ PREG_OFFSET_CAPTURE); var_dump($matches);
Output for 5.3.0 - 5.4.29
Parse error: syntax error, unexpected '<' in /in/X37mv on line 3
Process exited with code 255.