3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $newUsersUuids = ['one', 'two', 'three']; $result = array_map('current', $newUsersUuids); var_dump($newUsersUuids, $result);
Output for 5.5.0 - 7.2.6
Warning: current() expects parameter 1 to be array, string given in /in/TYeRf on line 5 Warning: current() expects parameter 1 to be array, string given in /in/TYeRf on line 5 Warning: current() expects parameter 1 to be array, string given in /in/TYeRf on line 5 array(3) { [0]=> string(3) "one" [1]=> string(3) "two" [2]=> string(5) "three" } array(3) { [0]=> NULL [1]=> NULL [2]=> NULL }