3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = <<<END [account] user = {user1} pwd = {password1} expdate = 2028-01-01 [account] user = {user2} pwd = {password2} expdate = 2028-01-01 [account] user = {user3} pwd = {password3} expdate = 2028-01-01 END; $data = array_map( function($entry) { return parse_ini_string($entry); }, array_filter( explode('[account]', $input), function($entry) { return strlen(trim($entry)); } ) ); print_r($data); //
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [1] => Array ( [user] => {user1} [pwd] => {password1} [expdate] => 2028-01-01 ) [2] => Array ( [user] => {user2} [pwd] => {password2} [expdate] => 2028-01-01 ) [3] => Array ( [user] => {user3} [pwd] => {password3} [expdate] => 2028-01-01 ) )

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.39 ms | 406 KiB | 5 Q