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[1]); var_dump($matches);
Output for 5.3.0 - 7.2.0
Notice: Undefined offset: 1 in /in/RrBvP on line 12 NULL array(1) { [0]=> array(2) { [0]=> string(19) "@table(market_data)" [1]=> string(10) "@something" } }
Output for 4.3.0 - 4.4.1, 4.4.3 - 5.1.1, 5.1.3 - 5.2.17
Notice: Undefined offset: 1 in /in/RrBvP on line 12 NULL array(1) { [0]=> array(2) { [0]=> string(19) "@table(market_data)" [1]=> string(10) "@something" } }
Output for 4.4.2, 5.1.2
Notice: Undefined offset: 1 in /in/RrBvP on line 13 NULL array(1) { [0]=> array(2) { [0]=> string(19) "@table(market_data)" [1]=> string(10) "@something" } }