3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $doc = "/** * This exception is thrown when no constant function is found. * * @author Time.ly Network Inc. * @since 2.0 * * @instantiator Ai1ec_View_Factory Category_Exception * @package AI1EC * @subpackage AI1EC.Config */"; preg_match_all('#^\s*[*]\s*@instantiator\s+(.*)$#m', $doc, $annotations); echo var_dump($annotations);
Output for 4.3.0 - 7.1.0
array(2) { [0]=> array(1) { [0]=> string(54) " * @instantiator Ai1ec_View_Factory Category_Exception" } [1]=> array(1) { [0]=> string(37) "Ai1ec_View_Factory Category_Exception" } }