3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( array( "users" => array( "email" => "test@yahoo.com ,testuser@yahoo.com" , "username" => "test,testuser", "description" => "description1,description2" ), ), ); foreach($array as $users) { foreach($users as &$value) { $users['users']["email"] = explode(",", $value['email']); $users['users']["username"] = explode(",", $value['username']); $users['users']["description"] = explode(",", $value['description']); } } print_r($array); print_r($value);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [users] => Array ( [email] => test@yahoo.com ,testuser@yahoo.com [username] => test,testuser [description] => description1,description2 ) ) ) Array ( [email] => Array ( [0] => test@yahoo.com [1] => testuser@yahoo.com ) [username] => Array ( [0] => test [1] => testuser ) [description] => Array ( [0] => description1 [1] => description2 ) )

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