3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $full = htmlspecialchars("Harness Spider-Man’s powers with Manhattan as your playground! <br><br>Set shortly after the events of Columbia Pictures' new film, The Amazing Spider-Man throws New York City's brand new hero back into free-roaming, web-slinging action, as he protects the Big Apple from a deluge of unimaginable threats.<h2 class="bb_tag">Key Features</h2><ul class="bb_ul"><li>Spider-Man’s triumphant return to New York – Everybody’s favorite web-head is back in Manhattan with the return of the fan-favorite, free-roaming, web-slinging gameplay. <br></li><li>Web Rush: player choice evolved – Players use real-time navigational and combat choices to fight crime and pull off Spidey’s signature acrobatic moves like never before.<br></li><li>Find out what happens next – Uncover the rest of Peter Parker’s untold story in the all-new epilogue story to the Columbia Pictures' 2012 blockbuster theatrical release.<br></li><li>Push Spider-Man’s abilities to the limit – Battle all new versions of classic Super Villains as well as original, larger than life enemies while racing to save Manhattan.</li></ul>", ENT_QUOTES); $paragraph = 2; $i=0; $new_line = ""; //$explode_br = explode("<br>", $full); //echo $explode_br; //$explode_lines = explode(".", $explode_br[0]); $explode_lines = explode(".", $full); while ($i<$paragraph) { $new_line .= $explode_lines[$i]."."; $i++; } echo htmlspecialchars($new_line, ENT_QUOTES)."\n"; ?>
based on shuYN
Output for 7.0.0 - 7.0.2
Parse error: syntax error, unexpected 'bb_tag' (T_STRING), expecting ',' or ')' in /in/GkHCL on line 2
Process exited with code 255.
Output for 5.4.11 - 5.6.17
Parse error: syntax error, unexpected 'bb_tag' (T_STRING) in /in/GkHCL on line 2
Process exited with code 255.
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected T_STRING in /in/GkHCL on line 2
Process exited with code 255.