3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a= <<<EOT /** * @table(market_data) @something * Class MarketData */ EOT; preg_match_all('/(@[\w\(\)]+/)', $a, $matches); var_dump($matches[0]);
Output for 5.2.0 - 7.2.0
Warning: preg_match_all(): Unknown modifier ')' in /in/NsqLU on line 11 NULL
Output for 4.3.11 - 4.4.1, 4.4.3 - 5.1.1, 5.1.3 - 5.1.6
Warning: preg_match_all(): Unknown modifier ')' in /in/NsqLU on line 11 Notice: Undefined offset: 0 in /in/NsqLU on line 13 NULL
Output for 4.4.2, 5.1.2
Warning: preg_match_all(): Unknown modifier ')' in /in/NsqLU on line 12 Notice: Undefined offset: 0 in /in/NsqLU on line 14 NULL
Output for 4.3.0 - 4.3.10
Warning: Unknown modifier ')' in /in/NsqLU on line 11 Notice: Undefined offset: 0 in /in/NsqLU on line 13 NULL