3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $re = '/^(?!.*/\.)(?!.*\.\.)(?!/)(?!.*//)(?!.*@\{)(?!@$)(?!.*\\)[^\000-\037\177 ~^:?*[]+/[^\000-\037\177 ~^:?*[]+(?<!\.lock)(?<!/)(?<!\.)$/'; var_dump(preg_match($re, ''));
based on cqoCg
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.2.6
Warning: preg_match(): Unknown modifier '\' in /in/3tcRq on line 5 bool(false)
Output for hhvm-3.15.4
Warning: Unknown modifier '\': [/^(?!.*/\.)(?!.*\.\.)(?!/)(?!.*//)(?!.*@\{)(?!@$)(?!.*\)[^\000-\037\177 ~^:?*[]+/[^\000-\037\177 ~^:?*[]+(?<!\.lock)(?<!/)(?<!\.)$/] in /in/3tcRq on line 5 bool(false)