3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arraykey = new stdClass; $arraykey->date = "2008-05-20"; $arraykey->page_views = 1; $arraykey->date = "2011-08-03"; $arraykey->page_views = 2; $arraykey->date = "2008-08-20"; $arraykey->page_views = 3; $arraykey->date = "2008-08-27"; $arraykey->page_views = 2; $arraykey->date = "2011-10-11"; $arraykey->page_views = 3; var_dump($arraykey); foreach($arraykey as $ad) { echo $ad->date; } echo $total;
Output for git.master, git.master_jit, rfc.property-hooks
object(stdClass)#1 (2) { ["date"]=> string(10) "2011-10-11" ["page_views"]=> int(3) } Warning: Attempt to read property "date" on string in /in/QWFK8 on line 18 Warning: Attempt to read property "date" on int in /in/QWFK8 on line 18 Warning: Undefined variable $total in /in/QWFK8 on line 20

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