3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "Исходная строка"; $words = implode(" ", $str); print_r($words); ?>
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.7
Fatal error: Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array, string given in /in/vWIFN:3 Stack trace: #0 /in/vWIFN(3): implode(' ', '\xD0\x98\xD1\x81\xD1\x85\xD0\xBE\xD0\xB4\xD0\xBD\xD0\xB0\xD1...') #1 {main} thrown in /in/vWIFN on line 3
Process exited with code 255.
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
Warning: implode(): Invalid arguments passed in /in/vWIFN on line 3

preferences:
234.99 ms | 403 KiB | 331 Q