3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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())); }
Output for 4.3.0 - 7.1.0
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