3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php if ($mode==2){$temp = <<<HTML <link href="themes/ui-darkness/jquery-ui-1.8.12.custom.css" rel="stylesheet" media="screen"> <link href="themes/jquery.videobackground.css" rel="stylesheet" media="screen"> <style> body {margin: 0;font-family: arial, helvetica, sans-serif;} a {color: #FFF;} h2 {font-size: 20px;font-weight: normal;} li {list-style: none;} dl { } dt {float: left;width: 160px;} dd {margin: 0 0 10px 160px;} .video-background {position: fixed;top: 0;left: 0;overflow: hidden;width: 100%;height: 100%;z-index: 0;} .video-background video {min-height: 100%;min-width:100%;} #page {position: relative;z-index: 1;width: 960px;color: #FFF;background: transparent url(media/fallback1.jpg) repeat top left;border-radius: 5px;margin: 0 auto;} #main {padding: 10px;margin: 10px 0;} </style> <script src="js/jquery.videobackground.js"></script> <script> $(document).ready(function() {$('dl').toggle();$('h2').bind('click', function(event) {event.preventDefault();$(this).next('dl').slideToggle(500, function() {$('.video-background').videobackground('resize');});});$('body').prepend('<div class="video-background"></div>');$('.video-background').videobackground({videoSource: [['media/BgV.mp4', 'video/mp4'],['media/BgV.webm', 'video/webm']],controlPosition: '#main',poster: 'media/fallback1.jpg',loadedCallback: function() {$(this).videobackground('mute');}});}); </script> <style> html, body {margin: 0;width: 100%;height: 100%;} </style> HTML; echo $temp;}
Output for 7.0.0 - 7.0.1
Parse error: syntax error, unexpected '(', expecting variable (T_VARIABLE) or '{' or '$' in /in/EZGac on line 21
Process exited with code 255.
Output for 5.4.11 - 5.6.16
Parse error: syntax error, unexpected '(', expecting variable (T_VARIABLE) or '$' in /in/EZGac on line 21
Process exited with code 255.
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected '(', expecting T_VARIABLE or '$' in /in/EZGac on line 21
Process exited with code 255.