3v4l.org

run code in 300+ PHP versions simultaneously
<?php $recipients = "john('john@yahoo.com'), frank('frank@gmail.com'),simon('simon@to.com')"; preg_match_all("/(?:, ?)?([^(]+)\('([^']+)'\)/", $recipients, $matches, PREG_SET_ORDER); var_export( array_map( fn($row) => ['name' => $row[1], 'email' => $row[2]], $matches ) );
Output for git.master_jit, git.master, rfc.property-hooks
array ( 0 => array ( 'name' => 'john', 'email' => 'john@yahoo.com', ), 1 => array ( 'name' => 'frank', 'email' => 'frank@gmail.com', ), 2 => array ( 'name' => 'simon', 'email' => 'simon@to.com', ), )

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:
26.53 ms | 406 KiB | 5 Q