3v4l.org

run code in 300+ PHP versions simultaneously
<?php $link = 'this is my best <a href="http://www.website.com/andsoooooooooooom_biiiiiiiiiiiiiiiig_characrs_heeeeeeeeere">http://www.website.com/andsoooooooooooom_biiiiiiiiiiiiiiiig_characrs_heeeeeeeeere</a> and this is my some text'; preg_match('/<a href="(.+)">/', $link, $match); $shortenedLink = (strlen($match[1]) > 70) ? substr($match[1], 0, 20) . '...' : $match[1]; echo "this is my best <a href='http://www.website.com/andsoooooooooooom_biiiiiiiiiiiiiiiig_characrs_heeeeeeeeer'>$shortenedLink</a> and this is my some text";
Output for git.master, git.master_jit, rfc.property-hooks
this is my best <a href='http://www.website.com/andsoooooooooooom_biiiiiiiiiiiiiiiig_characrs_heeeeeeeeer'>http://www.website.c...</a> and this is my some text

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
57.45 ms | 1979 KiB | 4 Q