3v4l.org

run code in 300+ PHP versions simultaneously
<?php <html> <head> <script type="text/javascript"> window.onload = init_loader; function init_loader (){ var head = document.getElementsByTagName('head').item(0); document.getElementById('loader').onclick = function () { var script = document.createElement('script'); script.setAttribute( 'type', 'text/javascript' ); script.setAttribute( 'src', 'remote.php?value=my message' ); head.insertBefore( script, head.firstChild ); }; }; </script> </head> <body> </body> <a id="loader" href="#">Load Script</a> </html>
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.25
Parse error: syntax error, unexpected '<' in /in/4PLKT on line 2
Process exited with code 255.

preferences:
193.2 ms | 1399 KiB | 62 Q