3v4l.org

run code in 150+ 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 - 5.6.28, 7.0.0 - 7.1.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.3.0 - 4.3.10, hhvm-3.10.0 - 3.12.0
Warning: 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)