3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $ez = array( 'ez5' => 'ez', 'ez4' => 'ez', 'ez3' => 'ez', 'ez2' => 'ez', 'ez1' => 'ez', ); function lmao( $key, $val ) { return "$key$val"; } var_dump( array_map( 'lmao', array_keys( $ez ), $ez ) );
Output for 5.6.11
array(5) { [0]=> string(5) "ez5ez" [1]=> string(5) "ez4ez" [2]=> string(5) "ez3ez" [3]=> string(5) "ez2ez" [4]=> string(5) "ez1ez" }