3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $ar = array('q'=>1, 'w'=>2, 'e'=>3); $ak = array_keys($ar); unset($ak['w']); print_r($ak);
based on pMCCj
Output for 4.3.0 - 7.1.0
Array ( [0] => q [1] => w [2] => e )