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);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ivnl0
function name:  (null)
number of ops:  13
compiled vars:  !0 = $text, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '_t%28%27landing%27%2C+%27asdfasdf+adfasd%27%29'
    3     1        ASSIGN_OP                                     8          !0, '++asdfasd++_t%28%27landing%27%2C+%27asdfasdf+adf111asd%27%29'
    4     2        ASSIGN_OP                                     8          !0, '++++asdfasdfasdf+qwerq+d+fasdf++++_t%28%27landing+page%27%2C+%27as111dfasdf+adfasd%27%29'
    5     3        ASSIGN_OP                                     8          !0, '%3Ca%3E%3C%2Fa%3E+asdfasdf+_t%28%27landing%27%2C+%27asdfasdf+111adfasd%27%29'
    6     4        INIT_FCALL                                               'preg_match_all'
          5        SEND_VAL                                                 '%2F_t%5C%28+%2A%5B%27%22%5D%28%5Ba-zA-Z+-_%5D%2B%29%5B%27%22%5D+%2A%5C%2C+%2A%5B%27%22%5D%28%5Ba-zA-Z+-_%5D%2B%29%5B%27%22%5D+%2A%5C%29%2Fi'
          6        SEND_VAR                                                 !0
          7        SEND_REF                                                 !1
          8        DO_ICALL                                                 
    7     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.63 ms | 1394 KiB | 17 Q