3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test() { for ($n = 'a'; $n < 'g'; $n++) { $$n = array(); } $$n = array(); $$n .= "test"; return $$n; } var_dump(test2());

preferences:
39.89 ms | 402 KiB | 5 Q