3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( chr([], 2) );
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Fatal error: Uncaught ArgumentCountError: chr() expects exactly 1 argument, 2 given in /in/Yrr43:4 Stack trace: #0 /in/Yrr43(4): chr(Array, 2) #1 {main} thrown in /in/Yrr43 on line 4
Process exited with code 255.
Output for 7.4.0 - 7.4.33
Warning: chr() expects exactly 1 parameter, 2 given in /in/Yrr43 on line 4 string(1) ""
Output for 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33
Warning: Wrong parameter count for chr() in /in/Yrr43 on line 4 NULL

preferences:
182.06 ms | 402 KiB | 211 Q