3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $attachments = array('a',2=>'b',3=>'c'); $id = (key($attachments)); echo $id;
Output for 4.3.0 - 7.1.0
0