3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php preg_replace_callback("/(?<=&lt;|&lt;\/)(a(?:bbr|cronym|ddress|pplet|rea)?|b(?:ase(?:font)?|do|ig|lockquote|ody|r|utton)?|c(?:aption|enter|ite|o(?:de|l(?:group)?))|d(?:d|el|fn|i[rv]|l|t)|em|f(?:ieldset|o(?:nt|rm)|rame(?:set)?)|h(?:1|2|3|4|5|6|ead|r|tml)|i(?:frame|layer|mg|n(?:put|s)|sindex)?|kbd|l(?:abel|egend|i(?:nk)?)|m(?:ap|eta)|no(?:frames|script)|o(?:bject|l|pt(?:group|ion))|p(?:aram|re)?|q|s(?:amp|cript|elect|mall|pan|t(?:r(?:ike|ong)|yle)|u[bp])?|t(?:able|body|d|ext(?:area)?|foot|h(?:ead)?|itle|r|t)|ul?|var)(?!\<DOT\>(?:htm|php|aspx?))(?=\s|\/|&gt;)/i", array($this, 'handle_keyword_replace'), "&lt;/span&gt;" );
Output for 7.1.0 - 7.2.0
Fatal error: Uncaught Error: Using $this when not in object context in /in/rPSa7:3 Stack trace: #0 {main} thrown in /in/rPSa7 on line 3
Process exited with code 255.
Output for 7.0.0 - 7.0.20
Notice: Undefined variable: this in /in/rPSa7 on line 3 Warning: preg_replace_callback(): Requires argument 2, 'Array', to be a valid callback in /in/rPSa7 on line 4
Output for 5.3.19 - 5.6.28
Notice: Undefined variable: this in /in/rPSa7 on line 3 Warning: preg_replace_callback(): Requires argument 2, 'Array', to be a valid callback in /in/rPSa7 on line 5