3v4l.org

run code in 300+ PHP versions simultaneously
<?php $my_string = '0:abcd1234,0:wxyz9876,1:defg5678'; $my_array = array_map(function($val) {return explode(':', $val);}, explode(',', $my_string)); print_r($my_array); ?>
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [0] => 0 [1] => abcd1234 ) [1] => Array ( [0] => 0 [1] => wxyz9876 ) [2] => Array ( [0] => 1 [1] => defg5678 ) )

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.9 ms | 406 KiB | 5 Q