3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php foreach (['?', '*', '`', '|'] as $value) { $result = preg_match("/[\!\#\$\%\(\)\*\+\-\.\/\:;\=\?\@\[\]\^_`\{\|\}]+|[0-9]+/", $value); var_dump(compact('value', 'result')); }
Output for 5.6.0 - 7.2.6
array(2) { ["value"]=> string(1) "?" ["result"]=> int(1) } array(2) { ["value"]=> string(1) "*" ["result"]=> int(1) } array(2) { ["value"]=> string(1) "`" ["result"]=> int(1) } array(2) { ["value"]=> string(1) "|" ["result"]=> int(1) }