3v4l.org

run code in 300+ PHP versions simultaneously
<?php $items = array( array('id' => 1, 'date' => '2014-01-01'), array('id' => 2, 'date' => '2014-01-02'), array('id' => 3, 'date' => '2014-01-03'), array('id' => 4, 'date' => '2014-01-04'), array('id' => 5, 'date' => '2014-01-05'), array('id' => 6, 'date' => '2014-01-06'), array('id' => 7, 'date' => '2014-01-07'), ); foreach ($items as $item) { echo $item['date']; //Undefined index: date HUH? } var_dump($item); /* array(2) { ["id"]=> int(1) [0]=> bool(true) } */ // Ah!
Output for git.master, git.master_jit, rfc.property-hooks
2014-01-012014-01-022014-01-032014-01-042014-01-052014-01-062014-01-07array(2) { ["id"]=> int(7) ["date"]=> string(10) "2014-01-07" }

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