3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function striptagquotes($expr) { $expr = preg_replace ( "/\<\?\=(\\\$.+?)\?\>/s", "\\1", $expr ); $expr = str_replace ( "\\\"", "\"", preg_replace ( "/\[\'([a-zA-Z0-9_\-\.\x7f-\xff]+)\'\]/s", "[\\1]", $expr ) ); return $expr; } $a = '<?=$"eval?>'; echo striptagquotes($a);
based on r9oFQ
Output for 4.3.0 - 7.2.0
$"eval