3v4l.org

run code in 300+ PHP versions simultaneously
<?php $body = '<body link="#0066FF" vlink="#6633CC" bgcolor="#33D7FF" style=\'margin:0\'>'."\n\n"; $body .= '<object type="application/x-shockwave-flash" data="http://flash-mp3-player.net/medias/player_mp3.swf" width="200" height="20">'."\n"; $body .= ' <param name="movie" value="http://flash-mp3-player.net/medias/player_mp3.swf" />'."\n"; $body .= ' <param name="bgcolor" value="#ffffff" />'."\n"; $body .= ' <param name="FlashVars" value="mp3=%MP3%&amp;loop=1&amp;autoplay=1" />'."\n"; $body .= '</object>'."\n"; $html = '<html><body link="#0066FF" vlink="#6633CC" bgcolor="#4CDCFF" style=\'margin:0\'>asddasdas</body></html>'; echo preg_replace('#<body[^>]+>#', ">>>{$0}<<<", $html);
Output for 5.4.0 - 5.4.27
Parse error: syntax error, unexpected '0' (T_LNUMBER), expecting variable (T_VARIABLE) or '$' in /in/D9BYf on line 12
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_LNUMBER, expecting T_VARIABLE or '$' in /in/D9BYf on line 12
Process exited with code 255.

preferences:
186.81 ms | 1395 KiB | 64 Q