3v4l.org

run code in 300+ PHP versions simultaneously
<?php $info_details = array( "<b>title:</b> this is title", "<b>name:</b> this is name", "<b>created</b> this is date" ); $return = array(); foreach($info_details as $val){ list ($key, $value) = explode("</b>",$val, 2); $key = strip_tags($key); $return[$key] = $value; } print_r($return);

preferences:
24.51 ms | 406 KiB | 5 Q