3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $re = '(^(?!@$|/|.*([/.]\.|//|@\{|\\))[^\000-\037\177 ~^:?*[]+/[^\000-\037\177 ~^:?*[]+(?<!\.lock|[/.])$)i'; var_dump(preg_match($re, ''));
based on sPZo8
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.0rc3
Warning: preg_match(): No ending matching delimiter ')' found in /in/cqoCg on line 5 bool(false)
Output for hhvm-3.15.4
Warning: No ending matching delimiter ')' found: [(^(?!@$|/|.*([/.]\.|//|@\{|\))[^\000-\037\177 ~^:?*[]+/[^\000-\037\177 ~^:?*[]+(?<!\.lock|[/.])$)i] in /in/cqoCg on line 5 bool(false)