3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "hello world. Hello world"; $words = explode(' ', $string); $html = '<span>' . $words[0] . '</span> ' . Implode(" ", array_slice($words,1)); Echo $html;

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
214.69 ms | 2596 KiB | 11 Q