3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Everything you enter here will be executed by our servers. Try it! function foo() { $arrFoo = array(); return $arrFoo[] = "foo"; } var_dump(foo());

preferences:
41.45 ms | 402 KiB | 5 Q