3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = <<<TEXT "name1", "b", "2", "name2", "c", "3", "name3", "b", "2" TEXT; var_export( array_map( fn($chunk) => array_combine(['name', 'char', 'qnt'], $chunk), array_chunk(str_getcsv($text), 3) ) );
Output for git.master_jit, git.master, rfc.property-hooks
array ( 0 => array ( 'name' => 'name1', 'char' => 'b', 'qnt' => '2', ), 1 => array ( 'name' => 'name2', 'char' => 'c', 'qnt' => '3', ), 2 => array ( 'name' => 'name3', 'char' => 'b', 'qnt' => '2', ), )

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