3v4l.org

run code in 300+ PHP versions simultaneously
<?php $idnameCli = array ( array ( 1, 'Name1' ) , array ( 3, 'Name2' ) , array ( 4, 'Name3' ) ); ?> <select name="client" onchange="this.form.submit()"> <option value="" disabled selected>--client--</option> <?php for ($i = 0; $i < count($idnameCli); $i++) { echo "<option value='".$idnameCli[$i][1]."'>". implode('',$idnameCli[$i]) ."</option>".PHP_EOL; } ?> </select>
Output for git.master_jit, git.master, rfc.property-hooks
<select name="client" onchange="this.form.submit()"> <option value="" disabled selected>--client--</option> <option value='Name1'>1Name1</option> <option value='Name2'>3Name2</option> <option value='Name3'>4Name3</option> </select>

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