3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/(?<=url\()(?P<url>(.+)\w{3,4})(?=\)\s)/m'; $str = '/* latin-ext */ @font-face { font-family: \'Lato\'; font-style: normal; font-weight: 400; src: local(\'Lato Regular\'), local(\'Lato-Regular\'), url(https://fonts.gstatic.com/s/lato/v14/S6uyw4BMUTPHjxAwXiWtFCfQ7A.woff2) format(\'woff2\'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: \'Lato\'; font-style: normal; font-weight: 400; src: local(\'Lato Regular\'), local(\'Lato-Regular\'), url(https://fonts.gstatic.com/s/lato/v14/S6uyw4BMUTPHjx4wXiWtFCc.woff2) format(\'woff2\'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* latin-ext */ @font-face { font-family: \'Lato\'; font-style: normal; font-weight: 700; src: local(\'Lato Bold\'), local(\'Lato-Bold\'), url(https://fonts.gstatic.com/s/lato/v14/S6u9w4BMUTPHh6UVSwaPGQ3q5d0N7w.woff2) format(\'woff2\'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: \'Lato\'; font-style: normal; font-weight: 700; src: local(\'Lato Bold\'), local(\'Lato-Bold\'), url(https://fonts.gstatic.com/s/lato/v14/S6u9w4BMUTPHh6UVSwiPGQ3q5d0.woff2) format(\'woff2\'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* vietnamese */ @font-face { font-family: \'Nunito Sans\'; font-style: normal; font-weight: 400; src: local(\'Nunito Sans Regular\'), local(\'NunitoSans-Regular\'), url(https://fonts.gstatic.com/s/nunitosans/v3/pe0qMImSLYBIv1o4X1M8cceyI9tAcVwob5A.woff2) format(\'woff2\'); unicode-range: U+0102-0103, U+0110-0111, U+1EA0-1EF9, U+20AB; } /* latin-ext */ @font-face { font-family: \'Nunito Sans\'; font-style: normal; font-weight: 400; src: local(\'Nunito Sans Regular\'), local(\'NunitoSans-Regular\'), url(https://fonts.gstatic.com/s/nunitosans/v3/pe0qMImSLYBIv1o4X1M8ccezI9tAcVwob5A.woff2) format(\'woff2\'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: \'Nunito Sans\'; font-style: normal; font-weight: 400; src: local(\'Nunito Sans Regular\'), local(\'NunitoSans-Regular\'), url(https://fonts.gstatic.com/s/nunitosans/v3/pe0qMImSLYBIv1o4X1M8cce9I9tAcVwo.woff2) format(\'woff2\'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* vietnamese */ @font-face { font-family: \'Nunito Sans\'; font-style: normal; font-weight: 600; src: local(\'Nunito Sans SemiBold\'), local(\'NunitoSans-SemiBold\'), url(https://fonts.gstatic.com/s/nunitosans/v3/pe03MImSLYBIv1o4X1M8cc9iB85iU1ECVZl_86Y.woff2) format(\'woff2\'); unicode-range: U+0102-0103, U+0110-0111, U+1EA0-1EF9, U+20AB; } /* latin-ext */ @font-face { font-family: \'Nunito Sans\'; font-style: normal; font-weight: 600; src: local(\'Nunito Sans SemiBold\'), local(\'NunitoSans-SemiBold\'), url(https://fonts.gstatic.com/s/nunitosans/v3/pe03MImSLYBIv1o4X1M8cc9iB85jU1ECVZl_86Y.woff2) format(\'woff2\'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: \'Nunito Sans\'; font-style: normal; font-weight: 600; src: local(\'Nunito Sans SemiBold\'), local(\'NunitoSans-SemiBold\'), url(https://fonts.gstatic.com/s/nunitosans/v3/pe03MImSLYBIv1o4X1M8cc9iB85tU1ECVZl_.woff2) format(\'woff2\'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* vietnamese */ @font-face { font-family: \'Nunito Sans\'; font-style: normal; font-weight: 700; src: local(\'Nunito Sans Bold\'), local(\'NunitoSans-Bold\'), url(https://fonts.gstatic.com/s/nunitosans/v3/pe03MImSLYBIv1o4X1M8cc8GBs5iU1ECVZl_86Y.woff2) format(\'woff2\'); unicode-range: U+0102-0103, U+0110-0111, U+1EA0-1EF9, U+20AB; } /* latin-ext */ @font-face { font-family: \'Nunito Sans\'; font-style: normal; font-weight: 700; src: local(\'Nunito Sans Bold\'), local(\'NunitoSans-Bold\'), url(https://fonts.gstatic.com/s/nunitosans/v3/pe03MImSLYBIv1o4X1M8cc8GBs5jU1ECVZl_86Y.woff2) format(\'woff2\'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: \'Nunito Sans\'; font-style: normal; font-weight: 700; src: local(\'Nunito Sans Bold\'), local(\'NunitoSans-Bold\'), url(https://fonts.gstatic.com/s/nunitosans/v3/pe03MImSLYBIv1o4X1M8cc8GBs5tU1ECVZl_.woff2) format(\'woff2\'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }'; preg_match_all($re, $str, $matches, PREG_SET_ORDER, 0); foreach($matches as $font_variant => $match){ echo($match['url']).PHP_EOL; } // Print the entire match result var_export($matches);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 16
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 16
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/rr3qr
function name:  (null)
number of ops:  21
compiled vars:  !0 = $re, !1 = $str, !2 = $matches, !3 = $match, !4 = $font_variant
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%2F%28%3F%3C%3Durl%5C%28%29%28%3FP%3Curl%3E%28.%2B%29%5Cw%7B3%2C4%7D%29%28%3F%3D%5C%29%5Cs%29%2Fm'
    3     1        ASSIGN                                                   !1, '%2F%2A+latin-ext+%2A%2F%0A%40font-face+%7B%0A++font-family%3A+%27Lato%27%3B%0A++font-style%3A+normal%3B%0A++font-weight%3A+400%3B%0A++src%3A+local%28%27Lato+Regular%27%29%2C+local%28%27Lato-Regular%27%29%2C+url%28https%3A%2F%2Ffonts.gstatic.com%2Fs%2Flato%2Fv14%2FS6uyw4BMUTPHjxAwXiWtFCfQ7A.woff2%29+format%28%27woff2%27%29%3B%0A++unicode-range%3A+U%2B0100-024F%2C+U%2B0259%2C+U%2B1E00-1EFF%2C+U%2B2020%2C+U%2B20A0-20AB%2C+U%2B20AD-20CF%2C+U%2B2113%2C+U%2B2C60-2C7F%2C+U%2BA720-A7FF%3B%0A%7D%0A%2F%2A+latin+%2A%2F%0A%40font-face+%7B%0A++font-family%3A+%27Lato%27%3B%0A++font-style%3A+normal%3B%0A++font-weight%3A+400%3B%0A++src%3A+local%28%27Lato+Regular%27%29%2C+local%28%27Lato-Regular%27%29%2C+url%28https%3A%2F%2Ffonts.gstatic.com%2Fs%2Flato%2Fv14%2FS6uyw4BMUTPHjx4wXiWtFCc.woff2%29+format%28%27woff2%27%29%3B%0A++unicode-range%3A+U%2B0000-00FF%2C+U%2B0131%2C+U%2B0152-0153%2C+U%2B02BB-02BC%2C+U%2B02C6%2C+U%2B02DA%2C+U%2B02DC%2C+U%2B2000-206F%2C+U%2B2074%2C+U%2B20AC%2C+U%2B2122%2C+U%2B2191%2C+U%2B2193%2C+U%2B2212%2C+U%2B2215%2C+U%2BFEFF%2C+U%2BFFFD%3B%0A%7D%0A%2F%2A+latin-ext+%2A%2F%0A%40font-face+%7B%0A++font-family%3A+%27Lato%27%3B%0A++font-style%3A+normal%3B%0A++font-weight%3A+700%3B%0A++src%3A+local%28%27Lato+Bold%27%29%2C+local%28%27Lato-Bold%27%29%2C+url%28https%3A%2F%2Ffonts.gstatic.com%2Fs%2Flato%2Fv14%2FS6u9w4BMUTPHh6UVSwaPGQ3q5d0N7w.woff2%29+format%28%27woff2%27%29%3B%0A++unicode-range%3A+U%2B0100-024F%2C+U%2B0259%2C+U%2B1E00-1EFF%2C+U%2B2020%2C+U%2B20A0-20AB%2C+U%2B20AD-20CF%2C+U%2B2113%2C+U%2B2C60-2C7F%2C+U%2BA720-A7FF%3B%0A%7D%0A%2F%2A+latin+%2A%2F%0A%40font-face+%7B%0A++font-family%3A+%27Lato%27%3B%0A++font-style%3A+normal%3B%0A++font-weight%3A+700%3B%0A++src%3A+local%28%27Lato+Bold%27%29%2C+local%28%27Lato-Bold%27%29%2C+url%28https%3A%2F%2Ffonts.gstatic.com%2Fs%2Flato%2Fv14%2FS6u9w4BMUTPHh6UVSwiPGQ3q5d0.woff2%29+format%28%27woff2%27%29%3B%0A++unicode-range%3A+U%2B0000-00FF%2C+U%2B0131%2C+U%2B0152-0153%2C+U%2B02BB-02BC%2C+U%2B02C6%2C+U%2B02DA%2C+U%2B02DC%2C+U%2B2000-206F%2C+U%2B2074%2C+U%2B20AC%2C+U%2B2122%2C+U%2B2191%2C+U%2B2193%2C+U%2B2212%2C+U%2B2215%2C+U%2BFEFF%2C+U%2BFFFD%3B%0A%7D%0A%2F%2A+vietnamese+%2A%2F%0A%40font-face+%7B%0A++font-family%3A+%27Nunito+Sans%27%3B%0A++font-style%3A+normal%3B%0A++font-weight%3A+400%3B%0A++src%3A+local%28%27Nunito+Sans+Regular%27%29%2C+local%28%27NunitoSans-Regular%27%29%2C+url%28https%3A%2F%2Ffonts.gstatic.com%2Fs%2Fnunitosans%2Fv3%2Fpe0qMImSLYBIv1o4X1M8cceyI9tAcVwob5A.woff2%29+format%28%27woff2%27%29%3B%0A++unicode-range%3A+U%2B0102-0103%2C+U%2B0110-0111%2C+U%2B1EA0-1EF9%2C+U%2B20AB%3B%0A%7D%0A%2F%2A+latin-ext+%2A%2F%0A%40font-face+%7B%0A++font-family%3A+%27Nunito+Sans%27%3B%0A++font-style%3A+normal%3B%0A++font-weight%3A+400%3B%0A++src%3A+local%28%27Nunito+Sans+Regular%27%29%2C+local%28%27NunitoSans-Regular%27%29%2C+url%28https%3A%2F%2Ffonts.gstatic.com%2Fs%2Fnunitosans%2Fv3%2Fpe0qMImSLYBIv1o4X1M8ccezI9tAcVwob5A.woff2%29+format%28%27woff2%27%29%3B%0A++unicode-range%3A+U%2B0100-024F%2C+U%2B0259%2C+U%2B1E00-1EFF%2C+U%2B2020%2C+U%2B20A0-20AB%2C+U%2B20AD-20CF%2C+U%2B2113%2C+U%2B2C60-2C7F%2C+U%2BA720-A7FF%3B%0A%7D%0A%2F%2A+latin+%2A%2F%0A%40font-face+%7B%0A++font-family%3A+%27Nunito+Sans%27%3B%0A++font-style%3A+normal%3B%0A++font-weight%3A+400%3B%0A++src%3A+local%28%27Nunito+Sans+Regular%27%29%2C+local%28%27NunitoSans-Regular%27%29%2C+url%28https%3A%2F%2Ffonts.gstatic.com%2Fs%2Fnunitosans%2Fv3%2Fpe0qMImSLYBIv1o4X1M8cce9I9tAcVwo.woff2%29+format%28%27woff2%27%29%3B%0A++unicode-range%3A+U%2B0000-00FF%2C+U%2B0131%2C+U%2B0152-0153%2C+U%2B02BB-02BC%2C+U%2B02C6%2C+U%2B02DA%2C+U%2B02DC%2C+U%2B2000-206F%2C+U%2B2074%2C+U%2B20AC%2C+U%2B2122%2C+U%2B2191%2C+U%2B2193%2C+U%2B2212%2C+U%2B2215%2C+U%2BFEFF%2C+U%2BFFFD%3B%0A%7D%0A%2F%2A+vietnamese+%2A%2F%0A%40font-face+%7B%0A++font-family%3A+%27Nunito+Sans%27%3B%0A++font-style%3A+normal%3B%0A++font-weight%3A+600%3B%0A++src%3A+local%28%27Nunito+Sans+SemiBold%27%29%2C+local%28%27NunitoSans-SemiBold%27%29%2C+url%28https%3A%2F%2Ffonts.gstatic.com%2Fs%2Fnunitosans%2Fv3%2Fpe03MImSLYBIv1o4X1M8cc9iB85iU1ECVZl_86Y.woff2%29+format%28%27woff2%27%29%3B%0A++unicode-range%3A+U%2B0102-0103%2C+U%2B0110-0111%2C+U%2B1EA0-1EF9%2C+U%2B20AB%3B%0A%7D%0A%2F%2A+latin-ext+%2A%2F%0A%40font-face+%7B%0A++font-family%3A+%27Nunito+Sans%27%3B%0A++font-style%3A+normal%3B%0A++font-weight%3A+600%3B%0A++src%3A+local%28%27Nunito+Sans+SemiBold%27%29%2C+local%28%27NunitoSans-SemiBold%27%29%2C+url%28https%3A%2F%2Ffonts.gstatic.com%2Fs%2Fnunitosans%2Fv3%2Fpe03MImSLYBIv1o4X1M8cc9iB85jU1ECVZl_86Y.woff2%29+format%28%27woff2%27%29%3B%0A++unicode-range%3A+U%2B0100-024F%2C+U%2B0259%2C+U%2B1E00-1EFF%2C+U%2B2020%2C+U%2B20A0-20AB%2C+U%2B20AD-20CF%2C+U%2B2113%2C+U%2B2C60-2C7F%2C+U%2BA720-A7FF%3B%0A%7D%0A%2F%2A+latin+%2A%2F%0A%40font-face+%7B%0A++font-family%3A+%27Nunito+Sans%27%3B%0A++font-style%3A+normal%3B%0A++font-weight%3A+600%3B%0A++src%3A+local%28%27Nunito+Sans+SemiBold%27%29%2C+local%28%27NunitoSans-SemiBold%27%29%2C+url%28https%3A%2F%2Ffonts.gstatic.com%2Fs%2Fnunitosans%2Fv3%2Fpe03MImSLYBIv1o4X1M8cc9iB85tU1ECVZl_.woff2%29+format%28%27woff2%27%29%3B%0A++unicode-range%3A+U%2B0000-00FF%2C+U%2B0131%2C+U%2B0152-0153%2C+U%2B02BB-02BC%2C+U%2B02C6%2C+U%2B02DA%2C+U%2B02DC%2C+U%2B2000-206F%2C+U%2B2074%2C+U%2B20AC%2C+U%2B2122%2C+U%2B2191%2C+U%2B2193%2C+U%2B2212%2C+U%2B2215%2C+U%2BFEFF%2C+U%2BFFFD%3B%0A%7D%0A%2F%2A+vietnamese+%2A%2F%0A%40font-face+%7B%0A++font-family%3A+%27Nunito+Sans%27%3B%0A++font-style%3A+normal%3B%0A++font-weight%3A+700%3B%0A++src%3A+local%28%27Nunito+Sans+Bold%27%29%2C+local%28%27NunitoSans-Bold%27%29%2C+url%28https%3A%2F%2Ffonts.gstatic.com%2Fs%2Fnunitosans%2Fv3%2Fpe03MImSLYBIv1o4X1M8cc8GBs5iU1ECVZl_86Y.woff2%29+format%28%27woff2%27%29%3B%0A++unicode-range%3A+U%2B0102-0103%2C+U%2B0110-0111%2C+U%2B1EA0-1EF9%2C+U%2B20AB%3B%0A%7D%0A%2F%2A+latin-ext+%2A%2F%0A%40font-face+%7B%0A++font-family%3A+%27Nunito+Sans%27%3B%0A++font-style%3A+normal%3B%0A++font-weight%3A+700%3B%0A++src%3A+local%28%27Nunito+Sans+Bold%27%29%2C+local%28%27NunitoSans-Bold%27%29%2C+url%28https%3A%2F%2Ffonts.gstatic.com%2Fs%2Fnunitosans%2Fv3%2Fpe03MImSLYBIv1o4X1M8cc8GBs5jU1ECVZl_86Y.woff2%29+format%28%27woff2%27%29%3B%0A++unicode-range%3A+U%2B0100-024F%2C+U%2B0259%2C+U%2B1E00-1EFF%2C+U%2B2020%2C+U%2B20A0-20AB%2C+U%2B20AD-20CF%2C+U%2B2113%2C+U%2B2C60-2C7F%2C+U%2BA720-A7FF%3B%0A%7D%0A%2F%2A+latin+%2A%2F%0A%40font-face+%7B%0A++font-family%3A+%27Nunito+Sans%27%3B%0A++font-style%3A+normal%3B%0A++font-weight%3A+700%3B%0A++src%3A+local%28%27Nunito+Sans+Bold%27%29%2C+local%28%27NunitoSans-Bold%27%29%2C+url%28https%3A%2F%2Ffonts.gstatic.com%2Fs%2Fnunitosans%2Fv3%2Fpe03MImSLYBIv1o4X1M8cc8GBs5tU1ECVZl_.woff2%29+format%28%27woff2%27%29%3B%0A++unicode-range%3A+U%2B0000-00FF%2C+U%2B0131%2C+U%2B0152-0153%2C+U%2B02BB-02BC%2C+U%2B02C6%2C+U%2B02DA%2C+U%2B02DC%2C+U%2B2000-206F%2C+U%2B2074%2C+U%2B20AC%2C+U%2B2122%2C+U%2B2191%2C+U%2B2193%2C+U%2B2212%2C+U%2B2215%2C+U%2BFEFF%2C+U%2BFFFD%3B%0A%7D'
  108     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        SEND_REF                                                 !2
          6        SEND_VAL                                                 2
          7        SEND_VAL                                                 0
          8        DO_ICALL                                                 
  109     9      > FE_RESET_R                                       $8      !2, ->16
         10    > > FE_FETCH_R                                       ~9      $8, !3, ->16
         11    >   ASSIGN                                                   !4, ~9
  110    12        FETCH_DIM_R                                      ~11     !3, 'url'
         13        CONCAT                                           ~12     ~11, '%0A'
         14        ECHO                                                     ~12
  109    15      > JMP                                                      ->10
         16    >   FE_FREE                                                  $8
  113    17        INIT_FCALL                                               'var_export'
         18        SEND_VAR                                                 !2
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.59 ms | 949 KiB | 18 Q