3v4l.org

run code in 500+ PHP versions simultaneously
<?php $arr = array( "a", "b", "c; d; e", "f", "g", "h; i; j", "k" ); foreach($arr as $key => $val){ $temp = explode("; ", $val); $arr[$key] = $temp[0]; $arr = array_merge($arr, array_slice($temp,1)); } var_dump($arr);
Output for git.master, git.master_jit, rfc.property-hooks
array(11) { [0]=> string(1) "a" [1]=> string(1) "b" [2]=> string(1) "c" [3]=> string(1) "f" [4]=> string(1) "g" [5]=> string(1) "h" [6]=> string(1) "k" [7]=> string(1) "d" [8]=> string(1) "e" [9]=> string(1) "i" [10]=> string(1) "j" }

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:
54.72 ms | 1573 KiB | 4 Q