3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $var = <<<DATA This is "some data" with some "quoted \"strings" DATA; $expr = '/"((?:[^"\\]|\\.)*)"/'; var_dump(preg_split($expr, $var, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE));
Output for 4.3.11 - 4.4.1, 4.4.3 - 5.1.1, 5.1.3 - 7.2.0
Warning: preg_split(): Compilation failed: missing terminating ] for character class at offset 17 in /in/UqMMC on line 9 bool(false)
Output for 4.4.2, 5.1.2
Warning: preg_split(): Compilation failed: missing terminating ] for character class at offset 17 in /in/UqMMC on line 10 bool(false)
Output for 4.3.0 - 4.3.10
Warning: Compilation failed: missing terminating ] for character class at offset 17 in /in/UqMMC on line 9 bool(false)