3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = '<p>I am <30 years old and weight <12st</p>'; $html = preg_replace('/^\s*<[^>]+>\s*|\s*<\/[^>]+>\s*\z/', '', $string); $final = preg_replace('/[^A-Za-z0-9 !@#$%^&*().]/u', '', $html); echo $final;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3SUP9
function name:  (null)
number of ops:  9
compiled vars:  !0 = $string, !1 = $html, !2 = $final
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%3Cp%3EI+am+%3C30+years+old+and+weight+%3C12st%3C%2Fp%3E'
    4     1        FRAMELESS_ICALL_3                preg_replace        ~4      '%2F%5E%5Cs%2A%3C%5B%5E%3E%5D%2B%3E%5Cs%2A%7C%5Cs%2A%3C%5C%2F%5B%5E%3E%5D%2B%3E%5Cs%2A%5Cz%2F', ''
          2        OP_DATA                                                      !0
          3        ASSIGN                                                       !1, ~4
    5     4        FRAMELESS_ICALL_3                preg_replace        ~6      '%2F%5B%5EA-Za-z0-9+%21%40%23%24%25%5E%26%2A%28%29.%5D%2Fu', ''
          5        OP_DATA                                                      !1
          6        ASSIGN                                                       !2, ~6
    7     7        ECHO                                                         !2
    8     8      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159.86 ms | 2281 KiB | 13 Q