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; } echo $str = abc(). "<br />"; if (strlen(abc()) > 1000) { substr(abc(), 0, 1000-strlen(abc())) }
Output for 5.3.0 - 5.4.25
Parse error: syntax error, unexpected '}' in /in/JurCR on line 12
Process exited with code 255.