3v4l.org

run code in 300+ PHP versions simultaneously
<?php $block_content = <<<EOD <div class="wp-block-group alignfull is-style-viewport-pinned has-mid-gray-background-color has-background"><div class="wp-block-group__inner-container"> <h2 class="has-text-align-center has-blue-color has-text-color">NOTÍCIAS GLOBAIS</h2> <section class="latest-posts alignfull wp-block-latest-posts"><div class="list-wrapper"><article class="has-post-thumbnail"><figure class="post-thumbnail aligncenter"><a href="https://www.petrofer.com/pt/2021/04/02/expansao-da-fabrica-de-producao-no-mexico/"><img width="1152" height="750" src="https://www.petrofer.com/pt/wp-content/uploads/sites/7/2021/04/PHOTO-2021-04-05-15-02-38-2-1152x750.jpg" class="attachment-widescreen-lg size-widescreen-lg wp-post-image" alt="" loading="lazy" style="" /></a></figure><div class="article__text"><header class="entry-header"><h2 class="entry-title"><a href="https://www.petrofer.com/pt/2021/04/02/expansao-da-fabrica-de-producao-no-mexico/">Expansão da fábrica de produção no México</a></h2></header><div class="entry-summary"><p>A PETROFER Latinoamericana S.A. de C.V. expandiu com sucesso sua planta de produção devido ao aumento da demanda. A área existente foi duplicada e a capacidade de pro-dução foi &#8230; <a class="more-link button" href="https://www.petrofer.com/pt/2021/04/02/expansao-da-fabrica-de-producao-no-mexico/">Ler mais <span class="screen-reader-text"> Expansão da fábrica de produção no México</span></a></p></div></div></article> <article class="has-post-thumbnail"><figure class="post-thumbnail aligncenter"><a href="https://www.petrofer.com/pt/2021/03/25/nossa-linha-de-oficina-mecanica/"><img width="1200" height="750" src="https://www.petrofer.com/pt/wp-content/uploads/sites/7/2021/03/Application-Example_9_Workshop-Range_RGB-1200x750.jpg" class="attachment-widescreen-lg size-widescreen-lg wp-post-image" alt="" loading="lazy" style="" srcset="https://www.petrofer.com/pt/wp-content/uploads/sites/7/2021/03/Application-Example_9_Workshop-Range_RGB-1200x750.jpg 1200w, https://www.petrofer.com/pt/wp-content/uploads/sites/7/2021/03/Application-Example_9_Workshop-Range_RGB-768x480.jpg 768w, https://www.petrofer.com/pt/wp-content/uploads/sites/7/2021/03/Application-Example_9_Workshop-Range_RGB-400x250.jpg 400w" sizes="(max-width: 1200px) 100vw, 1200px" /></a></figure><div class="article__text"><header class="entry-header"><h2 class="entry-title"><a href="https://www.petrofer.com/pt/2021/03/25/nossa-linha-de-oficina-mecanica/">Nossa linha de oficina mecânica</a></h2></header><div class="entry-summary"><p>Temos o prazer de lhes apresentar nossa nova linha de Workshops. Ela inclui os produtos &#8220;Move it&#8221;, &#8220;Protect it&#8221;, &#8220;Derust it&#8221;, &#8220;Degrease it&#8221; e &#8220;Cut it&#8221;. Fabricado na Alemanha e sem propelente &#8230; <a class="more-link button" href="https://www.petrofer.com/pt/2021/03/25/nossa-linha-de-oficina-mecanica/">Ler mais <span class="screen-reader-text"> Nossa linha de oficina mecânica</span></a></p></div></div></article> <article class="has-post-thumbnail"><figure class="post-thumbnail aligncenter"><a href="https://www.petrofer.com/pt/2021/03/05/cooperacao-huttenes-albertus-and-petrofer/"><img width="1200" height="750" src="https://www.petrofer.com/pt/wp-content/uploads/sites/7/2021/03/Cooperation-HA-Petrofer-1200x750.jpg" class="attachment-widescreen-lg size-widescreen-lg wp-post-image" alt="" loading="lazy" style="" srcset="https://www.petrofer.com/pt/wp-content/uploads/sites/7/2021/03/Cooperation-HA-Petrofer-1200x750.jpg 1200w, https://www.petrofer.com/pt/wp-content/uploads/sites/7/2021/03/Cooperation-HA-Petrofer-768x480.jpg 768w, https://www.petrofer.com/pt/wp-content/uploads/sites/7/2021/03/Cooperation-HA-Petrofer-400x250.jpg 400w" sizes="(max-width: 1200px) 100vw, 1200px" /></a></figure><div class="article__text"><header class="entry-header"><h2 class="entry-title"><a href="https://www.petrofer.com/pt/2021/03/05/cooperacao-huttenes-albertus-and-petrofer/">Cooperação Hüttenes-Albertus e Petrofer</a></h2></header><div class="entry-summary"><p>A Hüttenes-Albertus Chemische Werke GmbH e a PETROFER Chemie H. R. Fischer GmbH + Co. KG têm o prazer de anunciar uma nova parceria estratégica &#8230; <a class="more-link button" href="https://www.petrofer.com/pt/2021/03/05/cooperacao-huttenes-albertus-and-petrofer/">Ler mais <span class="screen-reader-text"> Cooperação Hüttenes-Albertus e Petrofer</span></a></p></div></div></article> <article class="has-post-thumbnail"><figure class="post-thumbnail aligncenter"><a href="https://www.petrofer.com/pt/2021/03/01/nova-fabrica-de-producao-na-china/"><img width="1200" height="750" src="https://www.petrofer.com/pt/wp-content/uploads/sites/7/2021/03/New-plant-China-1200x750.jpg" class="attachment-widescreen-lg size-widescreen-lg wp-post-image" alt="" loading="lazy" style="" srcset="https://www.petrofer.com/pt/wp-content/uploads/sites/7/2021/03/New-plant-China-1200x750.jpg 1200w, https://www.petrofer.com/pt/wp-content/uploads/sites/7/2021/03/New-plant-China-768x480.jpg 768w, https://www.petrofer.com/pt/wp-content/uploads/sites/7/2021/03/New-plant-China-400x250.jpg 400w" sizes="(max-width: 1200px) 100vw, 1200px" /></a></figure><div class="article__text"><header class="entry-header"><h2 class="entry-title"><a href="https://www.petrofer.com/pt/2021/03/01/nova-fabrica-de-producao-na-china/">Nova fábrica de produção na China</a></h2></header><div class="entry-summary"><p>Tianjin PETROFER Special Lubricants Company Ltd. como uma subsidiária 100% da Shanghai PETROFER Special Lubricants Co., Ltd. construiu uma nova planta de produção incluindo uma área de P&#038;D de última geração&#8230; <a class="more-link button" href="https://www.petrofer.com/pt/2021/03/01/nova-fabrica-de-producao-na-china/">Ler mais <span class="screen-reader-text"> Nova fábrica de produção na China</span></a></p></div></div></article> <article class="has-post-thumbnail"><figure class="post-thumbnail aligncenter"><a href="https://www.petrofer.com/pt/2021/02/18/nova-fabrica-de-producao-na-turquia/"><img width="1200" height="750" src="https://www.petrofer.com/pt/wp-content/uploads/sites/7/2021/03/New-plant-turkey-1200x750.jpg" class="attachment-widescreen-lg size-widescreen-lg wp-post-image" alt="" loading="lazy" style="" srcset="https://www.petrofer.com/pt/wp-content/uploads/sites/7/2021/03/New-plant-turkey-1200x750.jpg 1200w, https://www.petrofer.com/pt/wp-content/uploads/sites/7/2021/03/New-plant-turkey-768x480.jpg 768w, https://www.petrofer.com/pt/wp-content/uploads/sites/7/2021/03/New-plant-turkey-400x250.jpg 400w" sizes="(max-width: 1200px) 100vw, 1200px" /></a></figure><div class="article__text"><header class="entry-header"><h2 class="entry-title"><a href="https://www.petrofer.com/pt/2021/02/18/nova-fabrica-de-producao-na-turquia/">Nova fábrica de produção na Turquia</a></h2></header><div class="entry-summary"><p>PETROFER Industrial Oils and Chemicals Turkey construiu sua terceira planta de produção duran-te a Pandemia de Corona. O vídeo a seguir mostra o trabalho intensivo de 5 meses. Eles estão tra-balhando &#8230; <a class="more-link button" href="https://www.petrofer.com/pt/2021/02/18/nova-fabrica-de-producao-na-turquia/">Ler mais <span class="screen-reader-text"> Nova fábrica de produção na Turquia</span></a></p></div></div></article> <article class="has-post-thumbnail"><figure class="post-thumbnail aligncenter"><a href="https://www.petrofer.com/pt/2020/10/31/petrofer-fluid-manager/"><img width="1200" height="750" src="https://www.petrofer.com/pt/wp-content/uploads/sites/7/2021/03/Fluid-Manager-1200x750.jpg" class="attachment-widescreen-lg size-widescreen-lg wp-post-image" alt="" loading="lazy" style="" srcset="https://www.petrofer.com/pt/wp-content/uploads/sites/7/2021/03/Fluid-Manager-1200x750.jpg 1200w, https://www.petrofer.com/pt/wp-content/uploads/sites/7/2021/03/Fluid-Manager-768x480.jpg 768w, https://www.petrofer.com/pt/wp-content/uploads/sites/7/2021/03/Fluid-Manager-400x250.jpg 400w" sizes="(max-width: 1200px) 100vw, 1200px" /></a></figure><div class="article__text"><header class="entry-header"><h2 class="entry-title"><a href="https://www.petrofer.com/pt/2020/10/31/petrofer-fluid-manager/">PETROFER Fluid Manager®</a></h2></header><div class="entry-summary"><p>Com o PETROFER Fluid Manager® você introduzirá seus dados de medição de forma totalmente digital. O novo sistema com o aplicativo intuitivo e o portal web correspondente é a solução definitiva para seu gerenciamento de fluidos&#8230; <a class="more-link button" href="https://www.petrofer.com/pt/2020/10/31/petrofer-fluid-manager/">Ler mais <span class="screen-reader-text"> PETROFER Fluid Manager®</span></a></p></div></div></article> <article class="has-post-thumbnail"><figure class="post-thumbnail aligncenter"><a href="https://www.petrofer.com/pt/2020/03/17/covid-atual-situacao-de-fornecimento/"><img width="1200" height="750" src="https://www.petrofer.com/pt/wp-content/uploads/sites/7/2021/03/About_us_GTC_FA-1200x750.jpg" class="attachment-widescreen-lg size-widescreen-lg wp-post-image" alt="" loading="lazy" style="" srcset="https://www.petrofer.com/pt/wp-content/uploads/sites/7/2021/03/About_us_GTC_FA-1200x750.jpg 1200w, https://www.petrofer.com/pt/wp-content/uploads/sites/7/2021/03/About_us_GTC_FA-768x480.jpg 768w, https://www.petrofer.com/pt/wp-content/uploads/sites/7/2021/03/About_us_GTC_FA-400x250.jpg 400w" sizes="(max-width: 1200px) 100vw, 1200px" /></a></figure><div class="article__text"><header class="entry-header"><h2 class="entry-title"><a href="https://www.petrofer.com/pt/2020/03/17/covid-atual-situacao-de-fornecimento/">COVID &#8211; atual situação de fornecimento</a></h2></header><div class="entry-summary"><p>A nossa capacidade de fornecimento não sofreu qualquer restrição até à data devido à pandemia. Pode continuar a beneficiar da nossa flexibilidade e disponibilidade dos nossos produtos&#8230; <a class="more-link button" href="https://www.petrofer.com/pt/2020/03/17/covid-atual-situacao-de-fornecimento/">Ler mais <span class="screen-reader-text"> COVID &#8211; atual situação de fornecimento</span></a></p></div></div></article> </div></section></div></div> EOD; $group_with_inner_container_regex_original = '/(^\s*<div\b[^>]*wp-block-group(\s|")[^>]*>)(\s*<div\b[^>]*wp-block-group__inner-container(\s|")[^>]*>)((.|\S|\s)*)/'; $result = preg_match( $group_with_inner_container_regex_original, $block_content ); var_dump( $result ); $group_with_inner_container_regex_lazy = '/(^\s*<div\b[^>]*wp-block-group(\s|")[^>]*>)(\s*<div\b[^>]*wp-block-group__inner-container(\s|")[^>]*>)((.|\S|\s)*)/U'; $result = preg_match( $group_with_inner_container_regex_lazy, $block_content ); var_dump( $result ); $group_with_inner_container_regex_modified = '/(^\s*<div\b[^>]*wp-block-group(\s|")[^>]*>)(\s*<div\b[^>]*wp-block-group__inner-container(\s|")[^>]*>)/U'; $result = preg_match( $group_with_inner_container_regex_modified, $block_content ); var_dump( $result );
Output for 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.34, 7.3.0 - 7.3.33, 7.4.0 - 7.4.26, 8.0.0 - 8.0.13, 8.1rc1 - rc3
bool(false) int(1) int(1)
Output for 4.3.3 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40

Process exited with code 139.
Output for 4.3.0 - 4.3.2
int(1) int(1) int(1)

preferences:
46.23 ms | 461 KiB | 5 Q