3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $submission['group_1']['city'] = 'asd'; $city = isset($submission['group_1']['city']) ? $submission['group_1']['city'] : ''; echo preg_match('/^(asd|as)$/', $city);
based on Q7F7Y
Output for 4.3.0 - 7.2.0
1