3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function post_title_only() { $str = "Hello there folks, this is a long one"; if (strlen($str) <15) { $title_only = 'regular'; } elseif (strlen($str) >= 15) { $title_only = 'posttitleonly'; } echo $title_only; } ?>
Output for 4.3.0 - 7.1.0