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(); foreach($ar as $key => $a) { $er = explode('&', $a); $ir[$key]['id_dispositivo'] = $er[0]; $ir[$key]['vl_dispositivo'] = $er[1]; } echo(var_dump($ir));
Output for git.master, git.master_jit, rfc.property-hooks
array(3) { [0]=> array(2) { ["id_dispositivo"]=> string(2) "23" ["vl_dispositivo"]=> string(2) "65" } [1]=> array(2) { ["id_dispositivo"]=> string(3) "567" ["vl_dispositivo"]=> string(4) "89.7" } [2]=> array(2) { ["id_dispositivo"]=> string(2) "90" ["vl_dispositivo"]=> 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:
53.22 ms | 402 KiB | 8 Q