3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $charset = 'UTF-8//IGNORE'; $string = "I haven't felt much of anything since my guinea pig died. I didn't ask for a completely reasonable excuse! I asked you to get busy! Daylight and everything. You guys realize you live in a sewer, right? It's a T. It goes tuh. Yeah, lots of people did. You're going back for the Countess, aren't you? Guess again. THE BIG BRAIN AM WINNING AGAIN! I AM THE GREETEST! NOW I AM LEAVING EARTH, FOR NO RAISEN! Leela, Bender, we're going grave robbing. Humans dating robots is sick. You people wonder why I'm still single? It's 'cause all the fine robot sisters are dating humans!"; $substring = iconv_substr($string, 0, $limit, $charset); $result = iconv_substr($substring, 0, iconv_strrpos($substring, ' ', $charset), $charset) . '&hellip'; var_dump;
based on Ur61n
Output for 7.2.0 - 7.3.0rc3
Notice: Undefined variable: limit in /in/um28S on line 10 Warning: Use of undefined constant var_dump - assumed 'var_dump' (this will throw an Error in a future version of PHP) in /in/um28S on line 14
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.1.20
Notice: Undefined variable: limit in /in/um28S on line 10 Notice: Use of undefined constant var_dump - assumed 'var_dump' in /in/um28S on line 14
Output for hhvm-3.15.4
Notice: Undefined variable: limit in /in/um28S on line 10 Warning: iconv_substr() expects parameter 3 to be integer, null given in /in/um28S on line 10 Notice: Use of undefined constant var_dump - assumed 'var_dump' in /in/um28S on line 14