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);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [title:] => this is title [name:] => this is name [created] => this is date )

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
115.54 ms | 405 KiB | 5 Q