3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array(); function blaat() { global $a; return $a['foo'] = "bar"; } print blaat()."\n"; print_r($a);
Output for 4.3.0 - 7.1.0
bar Array ( [foo] => bar )