3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo('<script type="text/javascript">'.PHP_EOL.'window.location.href = "http://google.com";'.PHP_EOL.'</script>');
Output for 5.3.0 - 7.2.8
<script type="text/javascript"> window.location.href = "http://google.com"; </script>