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 -_]+)['\"] *\)/gi", $text, $matches); var_dump($matches);
Output for 5.4.0 - 5.4.15
Parse error: syntax error, unexpected 'landing' (T_STRING) in 0QLrL on line 2
Process exited with code 255.
Output for 5.3.25
Parse error: syntax error, unexpected T_STRING in /in/j60kE on line 2
Process exited with code 255.
Output for 5.3.0 - 5.3.24
Parse error: syntax error, unexpected T_STRING in 0QLrL on line 2
Process exited with code 255.

preferences:
174.3 ms | 1395 KiB | 49 Q