3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $message = "THIS IS SAMPLE STRING FOR TEST"; $string = implode(' ', array_slice(explode(' ', $message), 0, 3)); var_dump($string);
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
string(14) "THIS IS SAMPLE"
Output for hhvm-3.10.0

Process exited with code 153.