3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $var['foo'] = array('fooooo', 'bar'); $a = reset(array_slice($var['foo'], 0, 1)); var_dump($a); $a['foo'][0] = 'bar'; var_dump($a);