3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = "Hello, I am a pineapple."; $test = substr($string, 0, 100); var_dump($test);
Output for 4.3.0 - 7.1.0
string(24) "Hello, I am a pineapple."