3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $something = array( 'value1', 'value2' ); $somethingElse = array( 'value2', 'value3' ); var_dump( array_values( array_keys($something) + array_keys($somethingElse) ) );
Output for 4.3.0 - 7.1.0
array(2) { [0]=> int(0) [1]=> int(1) }