3v4l.org

run code in 300+ PHP versions simultaneously
<?php $attributes = array( 'autocomplete' => 'off', 'class' => 'email', 'id' => 'myform', 'value' => 'foo "fizz buzz" bar', ); echo implode( ' ', array_map( fn($k, $v) => sprintf( '%s="%s"', $k, htmlspecialchars( $v, ENT_QUOTES, 'UTF-8' ) ), array_keys($attributes), $attributes ) );
Output for git.master_jit, git.master
autocomplete="off" class="email" id="myform" value="foo &quot;fizz buzz&quot; bar"

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:
70.58 ms | 405 KiB | 5 Q