3v4l.org

run code in 300+ PHP versions simultaneously
<?php function display_form($fields) { foreach ($fields as $field) {?> <label><?=$field['label']?> <input type="<?=$field['type']?>" name="<?=$field['name']?>" value="<?=$field['value']?>" /> </label> <?php } } display_form( array( array( "type" => "text", "name" => "first_name", "value" => "", "label" => "First Name" ), array( "type" => "text", "name" => "last_name", "value" => "", "label" => "Last Name" ), array( "type" => "email", "name" => "email", "value" => "", "label" => "Email" ), array( "type" => "number", "name" => "extension", "value" => "", "label" => "Extension" ) ) );
Output for git.master_jit, git.master, rfc.property-hooks
<label>First Name <input type="text" name="first_name" value="" /> </label> <label>Last Name <input type="text" name="last_name" value="" /> </label> <label>Email <input type="email" name="email" value="" /> </label> <label>Extension <input type="number" name="extension" value="" /> </label>

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:
102 ms | 406 KiB | 5 Q