3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '|23&65|567&89.7|90&65.35'; $ar = explode("|", $string); $ar = array_slice($ar, 1, sizeof($ar)); $ir = array(0); foreach($ar as $key => $a) { $er = explode('&', $a); $ir[$er[0]] = $er[1]; } echo(var_dump($ar)); echo(var_dump($ir));
Output for git.master, git.master_jit, rfc.property-hooks
array(3) { [0]=> string(5) "23&65" [1]=> string(8) "567&89.7" [2]=> string(8) "90&65.35" } array(4) { [0]=> int(0) [23]=> string(2) "65" [567]=> string(4) "89.7" [90]=> string(5) "65.35" }

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:
36.8 ms | 402 KiB | 8 Q