3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function make_link($link_text, $div, $url){ echo" <a href='?$url' onclick='return false' onmousedown='javascript:swapContent(\"$url\", $div)'>$link_text</a>"; } echo "</td> <td>".make_link("upload", "more_content", "url=upload")."</td> <td>".make_link("Notifications", "more_content", "url=notifications")."</td> <td>".make_link("bio", "more_content", "url=bio")."</td> </tr> </table> </div> ";
based on nHMO4
Output for 4.3.0 - 7.2.0
<a href='?url=upload' onclick='return false' onmousedown='javascript:swapContent("url=upload", more_content)'>upload</a> <a href='?url=notifications' onclick='return false' onmousedown='javascript:swapContent("url=notifications", more_content)'>Notifications</a> <a href='?url=bio' onclick='return false' onmousedown='javascript:swapContent("url=bio", more_content)'>bio</a></td> <td></td> <td></td> <td></td> </tr> </table> </div>