3v4l.org

run code in 300+ PHP versions simultaneously
<?php $postText = "It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy."; $ellipsis = "...<a class='see-more' href='http://example.com/seemore-link'>read more</a>"; if (($len = strlen($postText)) > 170 && ($pos = strpos($postText, ' ', 170)) && ++$pos < $len){ $postText = substr_replace($postText, $ellipsis, $pos); } echo $postText;
Output for git.master, git.master_jit, rfc.property-hooks
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has ...<a class='see-more' href='http://example.com/seemore-link'>read more</a>

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:
123.55 ms | 406 KiB | 5 Q