3v4l.org

run code in 300+ PHP versions simultaneously
<?php $exp = 'ukuran:33,34,35;warna:putih,hitam'; print '<pre>'; $result = explode(';',$exp); print_r($result); foreach($result as $k=>$v){ $key_value = explode(':',$v); ${$key_value[0]} = explode(',',$key_value[1]); } print_r($ukuran); print '<br/>'; print_r($warna); print '</pre>'; ?>
Output for git.master_jit, git.master, rfc.property-hooks
<pre>Array ( [0] => ukuran:33,34,35 [1] => warna:putih,hitam ) Array ( [0] => 33 [1] => 34 [2] => 35 ) <br/>Array ( [0] => putih [1] => hitam ) </pre>

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:
179.74 ms | 405 KiB | 5 Q