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.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 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:
84.71 ms | 1647 KiB | 4 Q