3v4l.org

run code in 300+ PHP versions simultaneously
<?php Class className { public $id = array(); // this a array (1,2,3,4,5...) public $userId=array("1","2","3","4","5"); public function show() { echo "<table><tr>"; foreach($this->userId as $this->id) { echo "<td>"; echo $this->id."</td>"; } echo "</tr></table>"; } } $object=new className(); $object->show(); ?>
Output for git.master, git.master_jit, rfc.property-hooks
<table><tr><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td></tr></table>

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