3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function &collector() { static $collection = array(); return $collection; } array_push(collector(), 'foo'); print_r($collection);
Output for 5.2.15 - 7.1.0
Notice: Undefined variable: collection in /in/lqMB5 on line 10