3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ids = array(); array_push($ids, array('case' => 1, 'foo' => 'zzz')); array_push($ids, array('case' => 3, 'foo' => 'qqq')); array_push($ids, array('case' => 4, 'foo' => 'xxx')); array_push($ids, array('case' => 5, 'foo' => 'kkk')); array_push($ids, array('case' => 6, 'foo' => 'sss')); $ids_list = ''; foreach($ids as $id) { $ids_list .= $ids['case'] . ','; } rtrim($ids_list, ','); echo $ids_list; ?>
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined array key "case" in /in/336bo on line 13 Warning: Undefined array key "case" in /in/336bo on line 13 Warning: Undefined array key "case" in /in/336bo on line 13 Warning: Undefined array key "case" in /in/336bo on line 13 Warning: Undefined array key "case" in /in/336bo on line 13 ,,,,,

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