3v4l.org

run code in 300+ PHP versions simultaneously
<?php function abc() { $str = "Write your message here: (e.g. What's the purpose of your trip?)Write your message here: (e.g. What's the purpose of your trip?)Write your message here: (e.g. What's the purpose of your trip?)Write your message here: (e.g. What's the purpose of your trip?)Write your message here: (e.g. What's the purpose of your trip?)Write your message here: (e.g. What's the purpose of your trip?)Write your message here: (e.g. What's the purpose of your trip?)Write your message here: (e.g. What's the purpose of your trip?)Write your message here: (e.g. What's the purpose of your trip?)Write your message here: (e.g. What's the purpose of your trip?)Write your message here: (e.g. What's the purpose of your trip?)Write your message here: (e.g. What's the purpose of your trip?)Write your message here: (e.g. What's the purpose of your trip?)Write your message here: (e.g. What's the purpose of your trip?)Write your message here: (e.g. What's the purpose of your trip?)Write your message here: (e.g. What's th anil kumar"; return $str; } if (strlen(abc()) > 1000) { echo $newstr = substr(abc(), 0, 1000-strlen(abc())); }

preferences:
38.2 ms | 402 KiB | 5 Q