3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $pattern = "/\s([\w_\.\/]+)(?:=([\'\"]?(?:[\w\d\s\?=\(\)\.,'_#\/\\:;&-]|(?:\\\\\"|\\\')?)+[\'\"]?))?/"; $context = "<simpletag an_attribute=\"simpleValueInside\">"; $match = array(); if ($result =preg_match_all($pattern, $context, $match)) { var_dump($result); }
based on vmoO3
Output for 4.3.0 - 4.4.5, 4.4.9 - 5.2.1, 5.2.4 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
int(1)
Output for 5.2.2 - 5.2.3
Output for 4.4.6 - 4.4.8

Process exited with code 139.