3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( 'title' => array('value1'), 'description' => array('value2'), ); $array = array_map(function ($element) { return $element[0]; }, $array); var_dump($array);

preferences:
49.15 ms | 405 KiB | 5 Q