3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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.4.25
Parse error: syntax error, unexpected '<' in /in/4PLKT on line 2
Process exited with code 255.