3v4l.org

run code in 300+ PHP versions simultaneously
<?php function __reindex(&$v,$k, &$aReindexed) { $kNew = $k+100; $aReindexed[$kNew] = $v; } $aTest = array(4,"f","_","test"); $aReindexed = array(); array_walk($aTest, "__reindex", $aReindexed ); print_r($aReindexed); ?>

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
166.83 ms | 3274 KiB | 12 Q