3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array( 'status' => (object) (array( 'code' => 0, 'message' => 'Success', )), 'result' => array( 0 => (object) (array( 'base' => (object) (array( 'id' => 3, 'created' => '2012-11-11 12:11:07', 'start' => '2012-11-11', )), 'pos' => array( 0 => (object) (array( 'id' => 4, 'invoices_id' => 3, 'article_id' => 1, 'quantity' => 1, 'unit' => 'Monate', 'pos_txt' => 'Paketname', )), ), 'summ' => (object) (array( 'net' => '2.52', 'discount' => 0, 'tax' => '0.47899159663865', 'gross' => 3, 'rounded_net' => '2.52', )), )), 1 => (object) (array( 'base' => (object) (array( 'id' => 2, 'created' => '2012-11-11 12:10:39', 'start' => '2012-11-11', )), 'pos' => array( 0 => (object) (array( 'id' => 3, 'invoices_id' => 2, 'article_id' => 2, 'quantity' => 1, 'unit' => 'Monate', 'pos_txt' => 'Paketname2', )), ), 'summ' => (object) (array( 'net' => '5.04', 'discount' => 0, 'tax' => '0.95798319327731', 'gross' => 6, 'rounded_net' => '5.04', )), )), ), ); echo "<pre>"; foreach(array_map(function($v){ return $v->pos ;}, $data['result']) as $list) { foreach($list as $objPos) echo $objPos->pos_txt,PHP_EOL; } ?>
Output for git.master, git.master_jit, rfc.property-hooks
<pre>Paketname Paketname2

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:
60.48 ms | 401 KiB | 8 Q