3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = '<p > ¡Esto es una prueba! < /p > <p> <strong > Prueba 123 </strong> </p> <p> <strong> < a href="https://matricom.net"> MATRICOM < / a> </ strong> </p> <p> <strong > Todas las pruebas aquí ... </strong > < /p>'; echo preg_replace('~<\K\s*(?:(/)\s+)?|\s+(?=>)~u', '$1', $string);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XlFbq
function name:  (null)
number of ops:  5
compiled vars:  !0 = $string
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%3Cp+%3E+%C2%A1Esto+es+una+prueba%21+%3C+%2Fp+%3E+%3Cp%3E+%3Cstrong+%3E+Prueba+123+%3C%2Fstrong%3E+%3C%2Fp%3E+%3Cp%3E+%3Cstrong%3E+%3C+a+href%3D%22https%3A%2F%2Fmatricom.net%22%3E+MATRICOM+%3C+%2F+a%3E+%3C%2F+strong%3E+%3C%2Fp%3E+%3Cp%3E+%3Cstrong+%3E+Todas+las+pruebas+aqu%C3%AD+...+%3C%2Fstrong+%3E+%3C+%2Fp%3E'
    5     1        FRAMELESS_ICALL_3                preg_replace        ~2      '%7E%3C%5CK%5Cs%2A%28%3F%3A%28%2F%29%5Cs%2B%29%3F%7C%5Cs%2B%28%3F%3D%3E%29%7Eu', '%241'
          2        OP_DATA                                                      !0
          3        ECHO                                                         ~2
          4      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
233.76 ms | 2024 KiB | 14 Q