3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = <<<NOT_INI [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 NOT_INI; var_export( array_map( 'parse_ini_string', preg_split( '~\R?^\[account]\R~m', $data, null, PREG_SPLIT_NO_EMPTY ) ) );
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: preg_split(): Passing null to parameter #3 ($limit) of type int is deprecated in /in/H1AvJ on line 21 array ( 0 => array ( 'user' => '{user1}', 'pwd' => '{password1}', 'expdate' => '2028-01-01', ), 1 => array ( 'user' => '{user2}', 'pwd' => '{password2}', 'expdate' => '2028-01-01', ), 2 => 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 ms | 406 KiB | 5 Q