3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html=<<<HTML <a href="bla">123 "this" is asd</a> <a href="bla">this should not be captured</a> <a href="bla">no quotes in anchor text here</a> <a href="bla">"445 is in quotes"</a> <a href="bla">asd "blabla" sometimes</a> <a href="bla">Je commence à avoir mal à la tête</a> <a href="bla">something with quotes like “blabla” is bad</a> HTML; echo preg_replace('~<a[^>]*>.*?["“”].*?</a>\R?~u','',$html);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/acIHN
function name:  (null)
number of ops:  8
compiled vars:  !0 = $html
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Ca+href%3D%22bla%22%3E123+%22this%22+is+asd%3C%2Fa%3E%0A%3Ca+href%3D%22bla%22%3Ethis+should+not+be+captured%3C%2Fa%3E%0A%3Ca+href%3D%22bla%22%3Eno+quotes+in+anchor+text+here%3C%2Fa%3E%0A%3Ca+href%3D%22bla%22%3E%22445+is+in+quotes%22%3C%2Fa%3E%0A%3Ca+href%3D%22bla%22%3Easd+%22blabla%22+sometimes%3C%2Fa%3E%0A%3Ca+href%3D%22bla%22%3EJe+commence+%C3%A0+avoir+mal+%C3%A0+la+t%C3%AAte%3C%2Fa%3E%0A%3Ca+href%3D%22bla%22%3Esomething+with+quotes+like+%E2%80%9Cblabla%E2%80%9D+is+bad%3C%2Fa%3E'
   11     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%7E%3Ca%5B%5E%3E%5D%2A%3E.%2A%3F%5B%22%E2%80%9C%E2%80%9D%5D.%2A%3F%3C%2Fa%3E%5CR%3F%7Eu'
          3        SEND_VAL                                                 ''
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ECHO                                                     $2
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.99 ms | 1009 KiB | 14 Q