3v4l.org

run code in 300+ PHP versions simultaneously
<?php function &collector() { static $collection = array( 'foo' ); return $collection; echo implode("",$collection); } $collection = &collector(); $collection; ?>

preferences:
48.02 ms | 402 KiB | 5 Q