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" ), ), array( "usersv" => array( "email" => "test@yahaaaoo.com ,testuser@yaaaahoo.com" , "username" => "tedddst,teddddtuser", "description" => "descr222iption1,des222cription2" ), ) ); 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($value);
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught TypeError: explode(): Argument #2 ($string) must be of type string, array given in /in/IYQD4:25 Stack trace: #0 /in/IYQD4(25): explode(',', Array) #1 {main} thrown in /in/IYQD4 on line 25
Process exited with code 255.

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:
29.94 ms | 401 KiB | 8 Q