3v4l.org

run code in 300+ PHP versions simultaneously
<?php $titlex = 'string \' string'; $desc = $descx = $titlez = $titlex; $do_file = null; $r = htmlentities('updatepopup('.json_encode($titlex).', ' .json_encode($desc) .');', ENT_QUOTES); $r2 = htmlentities('updatepopup('.json_encode($titlex).', ' .json_encode($descx) .');', ENT_QUOTES); if ($do_file == "0") { echo "<tr title='".$titlez."' class='header' onClick='".$r."'>"; } else { echo "<tr title='".$titlez."' class='header' onClick='".$r2."'>"; }

preferences:
57.49 ms | 402 KiB | 5 Q