3v4l.org

run code in 300+ PHP versions simultaneously
<?php $link = 'http://www.website.com/andsoooooooooooom_biiiiiiiiiiiiiiiig_characters_heeeeeeeeere'; $shortenedLink = (strlen($link) > 70) ? substr($link, 0, 20) . '...' : $link; echo "this is my best <a href='$link'>$shortenedLink</a> and some text here";

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
172.31 ms | 2132 KiB | 11 Q