3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ [ "users" => [ 'email' => 'test@yahoo.com ,testuser@yahoo.com', 'username' => 'test,testuser', 'description' => 'description1,description2' ] ] ]; var_export( array_map( fn($csv) => preg_split('/ ?,/', $csv), $array[0]['users'] ) );
Output for git.master, git.master_jit, rfc.property-hooks
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:
40.09 ms | 406 KiB | 5 Q