3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = explode(' ', ['hello']); var_dump($result);
Output for 8.1.32 - 8.1.34, 8.2.0 - 8.2.30, 8.3.0 - 8.3.30, 8.4.1 - 8.4.18, 8.5.0 - 8.5.3
Fatal error: Uncaught TypeError: explode(): Argument #2 ($string) must be of type string, array given in /in/njBch:3 Stack trace: #0 /in/njBch(3): explode(' ', Array) #1 {main} thrown in /in/njBch on line 3
Process exited with code 255.

preferences:
39.84 ms | 862 KiB | 4 Q