3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $config = [ 'sitepoint.com/author' => SPAuthorTotalPageFetcher::class, 'sitepoint.com/hor' => SPAuthorTotalPageFetcr::class ]; var_dump(key($config['0']));
based on tFHoA
Output for 7.0.0 - 7.3.0beta1
Notice: Undefined offset: 0 in /in/sDl7T on line 8 Warning: key() expects parameter 1 to be array, null given in /in/sDl7T on line 8 NULL
Output for hhvm-3.22.0
Warning: Invalid operand type was used: expecting an array in /in/sDl7T on line -1 bool(false)
Output for hhvm-3.18.5 - 3.21.3
Warning: Invalid operand type was used: expecting an array in /in/sDl7T on line 8 bool(false)
Output for 5.6.0 - 5.6.30
Warning: key() expects parameter 1 to be array, null given in /in/sDl7T on line 8 NULL