3v4l.org

run code in 300+ PHP versions simultaneously
<?php $product = array( 0 => array( 'id' => '123', 'name' => 'Facebook status robot', 'description'=> 'Post your wall in your given time', 'quantity' => '1', 'unitPrice' => '120', 'taxable' => 'true' ), 1 => array( 'id' => '123', 'name' => 'Facebook status robot', 'description'=> 'Post your wall in your given time', 'quantity' => '1', 'unitPrice' => '120', 'taxable' => 'true' ), 2 => array( 'id' => '123', 'name' => 'Facebook status robot', 'description'=> 'Post your wall in your given time', 'quantity' => '1', 'unitPrice' => '120', 'taxable' => 'true' ) ); foreach($product as &$data) { unset($data['unitPrice']); unset($data['description']); } var_dump($product);
Output for git.master, git.master_jit, rfc.property-hooks
array(3) { [0]=> array(4) { ["id"]=> string(3) "123" ["name"]=> string(21) "Facebook status robot" ["quantity"]=> string(1) "1" ["taxable"]=> string(4) "true" } [1]=> array(4) { ["id"]=> string(3) "123" ["name"]=> string(21) "Facebook status robot" ["quantity"]=> string(1) "1" ["taxable"]=> string(4) "true" } [2]=> &array(4) { ["id"]=> string(3) "123" ["name"]=> string(21) "Facebook status robot" ["quantity"]=> string(1) "1" ["taxable"]=> string(4) "true" } }

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:
65.99 ms | 402 KiB | 8 Q