3v4l.org

run code in 300+ PHP versions simultaneously
<?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"; ?>

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
7.0.20.0270.06720.23
7.0.10.0070.04020.03
7.0.00.0030.09020.09
5.6.170.0300.04020.47
5.6.160.0030.09320.57
5.6.150.0070.06318.18
5.6.140.0130.07318.23
5.6.130.0030.08318.12
5.6.120.0070.04021.12
5.6.110.0030.04320.98
5.6.100.0100.07321.13
5.6.90.0030.05021.10
5.6.80.0130.07720.37
5.5.310.0270.03720.50
5.5.300.0070.04017.98
5.5.290.0070.06017.98
5.5.280.0030.09020.98
5.5.270.0130.07720.85
5.5.260.0030.08020.86
5.5.250.0070.07720.58
5.5.240.0270.07020.18

preferences:
142.88 ms | 1394 KiB | 7 Q