3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = 'a,b\\,c\\\\,d\\'; preg_match_all('/(?:[^\\\\,]|\\\\(?:$|\\.)+/', $str, $matches); var_dump($matches[0]);
based on 6o4JV
Output for 5.2.0 - 7.1.0
Warning: preg_match_all(): Compilation failed: missing ) at offset 21 in /in/UKsbJ on line 3 NULL
Output for 4.3.11 - 5.1.6
Warning: preg_match_all(): Compilation failed: missing ) at offset 21 in /in/UKsbJ on line 3 Notice: Undefined offset: 0 in /in/UKsbJ on line 4 NULL
Output for 4.3.0 - 4.3.10
Warning: Compilation failed: missing ) at offset 21 in /in/UKsbJ on line 3 Notice: Undefined offset: 0 in /in/UKsbJ on line 4 NULL