3v4l.org

run code in 300+ PHP versions simultaneously
<?php $example = 'This is an example of what I need.'; $words = str_word_count($example, 1); for ($x = 0; isset($words[$x + 2]); ++$x) { printf("%s %s %s\n", $words[$x], $words[$x + 1], $words[$x + 2]); }

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
151.67 ms | 2018 KiB | 12 Q