3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'text^name1^PETER~text^secondname1^SMITH~text^phone1^023482348~text^adres1^STREETAVENUE 1B~text^postcode1^91201CA~text^woonplaats1^LIVINGPLACE~email^email1^peter@example.com'; preg_match_all('/(?:text|email)\^([^^]+)\^([^^~]*)/', $string, $matches, PREG_SET_ORDER); var_export( array_column($matches, 2, 1) );
Output for git.master, git.master_jit, rfc.property-hooks
array ( 'name1' => 'PETER', 'secondname1' => 'SMITH', 'phone1' => '023482348', 'adres1' => 'STREETAVENUE 1B', 'postcode1' => '91201CA', 'woonplaats1' => 'LIVINGPLACE', 'email1' => 'peter@example.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:
124.11 ms | 406 KiB | 5 Q