3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( chr([]) );
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.6
Fatal error: Uncaught TypeError: chr(): Argument #1 ($codepoint) must be of type int, array given in /in/FF2nA:4 Stack trace: #0 /in/FF2nA(4): chr(Array) #1 {main} thrown in /in/FF2nA on line 4
Process exited with code 255.
Output for 7.4.0 - 7.4.33
Warning: chr() expects parameter 1 to be int, array given in /in/FF2nA on line 4 string(1) ""
Output for 7.1.25 - 7.1.28, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33
string(1) ""

preferences:
152.04 ms | 402 KiB | 163 Q