3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array( array ( 'text' => 'paris', 'nodes' => array( array( 'text' => 'paris', 'nodes' => array( 'text' => 'so.png', ), ), ), ), array( 'text' => 'charl', 'nodes' => array( array( 'text' => 'charl', 'nodes' => array( 'text' => 'so.png', ), ), ), ) ); for($i = 0; $i <= count($data) -1; $i++) { $data[$i]['nodes'] = array_map(function($node) { return array_values($node); }, $data[$i]['nodes']); } var_dump($data);
Output for git.master, git.master_jit, rfc.property-hooks
array(2) { [0]=> array(2) { ["text"]=> string(5) "paris" ["nodes"]=> array(1) { [0]=> array(2) { [0]=> string(5) "paris" [1]=> array(1) { ["text"]=> string(6) "so.png" } } } } [1]=> array(2) { ["text"]=> string(5) "charl" ["nodes"]=> array(1) { [0]=> array(2) { [0]=> string(5) "charl" [1]=> array(1) { ["text"]=> string(6) "so.png" } } } } }

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:
30.72 ms | 407 KiB | 5 Q