3v4l.org

run code in 300+ PHP versions simultaneously
<?php $post_id = array((object) (array( 'post_id' => 140, )), (object) (array( 'post_id' => 141, )), (object) (array( 'post_id' => 142, ))); print_r($post_id); foreach ($post_id as $key => $value) { $result[] = $value->post_id; } print_r($result);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => stdClass Object ( [post_id] => 140 ) [1] => stdClass Object ( [post_id] => 141 ) [2] => stdClass Object ( [post_id] => 142 ) ) Array ( [0] => 140 [1] => 141 [2] => 142 )

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