<!doctype html> <html> <body> <?php $a=1; $b=2; if ($a != $b) { echo '<script type="text/javascript">setTimeout(function() {window.close()},500)</script>'; } else { echo '<p>do nothing'; } ?> </body> </html>
Standard input is empty
<!doctype html>
<html>
<body>
<script type="text/javascript">setTimeout(function() {window.close()},500)</script></body>
</html>