3v4l.org

run code in 300+ 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:  8
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        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%7E%3C%5CK%5Cs%2A%28%3F%3A%28%2F%29%5Cs%2B%29%3F%7C%5Cs%2B%28%3F%3D%3E%29%7Eu'
          3        SEND_VAL                                                 '%241'
          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:
152.02 ms | 1082 KiB | 14 Q