3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rows = [ 100 => [ ['product_id' => 101, 'name' => ''], ['product_id' => 102, 'name' => ''], ['product_id' => 103, 'name' => ''], ], 200 => [ ['product_id' => 201, 'name' => ''], ['product_id' => 202, 'name' => ''], ], 300 => [ ['product_id' => 301, 'name' => ''], ['product_id' => 302, 'name' => ''], ['product_id' => 303, 'name' => ''], ['product_id' => 304, 'name' => ''], ] ]; var_export( array_merge( ...array_map( function() { return array_filter( func_get_args() ); }, ...$rows ) ) );
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => array ( 'product_id' => 101, 'name' => '', ), 1 => array ( 'product_id' => 201, 'name' => '', ), 2 => array ( 'product_id' => 301, 'name' => '', ), 3 => array ( 'product_id' => 102, 'name' => '', ), 4 => array ( 'product_id' => 202, 'name' => '', ), 5 => array ( 'product_id' => 302, 'name' => '', ), 6 => array ( 'product_id' => 103, 'name' => '', ), 7 => array ( 'product_id' => 303, 'name' => '', ), 8 => array ( 'product_id' => 304, 'name' => '', ), )

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