3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rows = array(array('date' => '2020-03-10', 'title' => 'bannana'), array('date' => '2020-03-10', 'title' => 'orange'),array('date' => '2020-03-11', 'title' => 'kiwi'),array('date' => '2020-03-12', 'title' => 'ice cream!'),); $previous = ''; foreach($rows as $row) { if($row['date'] != $previous) { echo $row['date'] . PHP_EOL; } echo $row['title'] . PHP_EOL; $previous = $row['date']; }
Output for git.master, git.master_jit, rfc.property-hooks
2020-03-10 bannana orange 2020-03-11 kiwi 2020-03-12 ice cream!

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:
41.56 ms | 1492 KiB | 4 Q