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);

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0100.01018.43
8.3.50.0030.01018.41
8.3.40.0070.00718.70
8.3.30.0100.00618.93
8.3.20.0030.00521.87
8.3.10.0060.00321.95
8.3.00.0090.00018.05
8.2.180.0190.00318.39
8.2.170.0090.00622.96
8.2.160.0110.00322.30
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0080.00021.07
8.2.120.0040.00426.35
8.2.110.0100.01321.13
8.2.100.0030.00918.04
8.2.90.0100.00019.29
8.2.80.0060.00319.73
8.2.70.0040.00417.88
8.2.60.0000.00817.93
8.2.50.0000.00918.07
8.2.40.0030.00518.35
8.2.30.0040.00418.08
8.2.20.0080.00018.29
8.2.10.0040.00418.18
8.2.00.0000.00718.16
8.1.280.0120.00625.92
8.1.270.0040.00423.84
8.1.260.0040.00426.35
8.1.250.0070.00328.09
8.1.240.0040.00422.46
8.1.230.0040.00720.97
8.1.220.0050.00317.91
8.1.210.0060.00319.10
8.1.200.0030.00717.47
8.1.190.0000.00817.47
8.1.180.0040.00418.10
8.1.170.0030.00618.73
8.1.160.0090.00018.87
8.1.150.0040.00419.07
8.1.140.0080.00017.75
8.1.130.0030.00319.11
8.1.120.0030.00517.69
8.1.110.0000.00817.64
8.1.100.0070.00017.61
8.1.90.0000.00717.63
8.1.80.0040.00417.63
8.1.70.0040.00417.67
8.1.60.0090.00017.79
8.1.50.0030.00517.70
8.1.40.0080.00017.64
8.1.30.0060.00317.73
8.1.20.0000.00717.85
8.1.10.0000.00917.81
8.1.00.0030.00617.76
8.0.300.0000.00720.21
8.0.290.0050.00217.00
8.0.280.0000.00818.45
8.0.270.0050.00317.36
8.0.260.0040.00417.23
8.0.250.0000.00717.04
8.0.240.0030.00517.04
8.0.230.0040.00417.05
8.0.220.0050.00217.12
8.0.210.0070.00017.03
8.0.200.0000.00717.05
8.0.190.0070.00317.08
8.0.180.0060.00317.06
8.0.170.0060.00317.04
8.0.160.0000.00717.11
8.0.150.0040.00417.07
8.0.140.0000.00817.02
8.0.130.0040.00413.52
8.0.120.0060.00317.07
8.0.110.0040.00417.02
8.0.100.0040.00417.09
8.0.90.0030.00616.96
8.0.80.0060.00917.02
8.0.70.0000.00717.14
8.0.60.0040.00416.94
8.0.50.0070.00017.06
8.0.30.0120.00817.29
8.0.20.0150.01517.40
8.0.10.0040.00417.21
8.0.00.0120.00816.79
7.4.330.0020.00215.55
7.4.320.0000.00616.68
7.4.300.0000.00716.86
7.4.290.0040.00416.72
7.4.280.0000.00816.73
7.4.270.0030.00316.88
7.4.260.0050.00216.72
7.4.250.0040.00416.66
7.4.240.0030.00616.86
7.4.230.0000.00716.95
7.4.220.0000.00816.80
7.4.210.0010.01316.79
7.4.200.0000.00716.87
7.4.160.0040.01516.70
7.4.140.0100.00917.86
7.4.130.0070.01117.05
7.4.120.0140.00616.70
7.3.330.0020.00213.20
7.3.320.0000.00613.36
7.3.310.0040.00416.41
7.3.300.0040.00416.50
7.3.290.0070.00016.48
7.3.280.0070.01016.50
7.3.260.0080.01016.64
7.3.240.0060.01116.69
7.2.40.0760.01718.39

preferences:
63.42 ms | 401 KiB | 5 Q