3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "_t('landing', 'asdfasdf adfasd')"; $text .= " asdfasd _t('landing', 'asdfasdf adf111asd')"; $text .= " asdfasdfasdf qwerq d fasdf _t('landing page', 'as111dfasdf adfasd')"; $text .= "<a></a> asdfasdf _t('landing', 'asdfasdf 111adfasd')"; preg_match_all("/_t\( *['\"]([a-zA-Z -_]+)['\"] *\, *['\"]([a-zA-Z -_]+)['\"] *\)/i", $text, $matches); var_dump($matches);

preferences:
67.2 ms | 402 KiB | 5 Q