3v4l.org

run code in 200+ PHP versions simultaneously
<?php function test() { return (string)[]; } var_dump(test());
Output for 7.2.0 - 7.4.4
Notice: Array to string conversion in /in/cVYbn on line 5 string(5) "Array"