3v4l.org

run code in 300+ PHP versions simultaneously
<?php $options = array('data_class' => 'foobar', 'required' => true, 'attr' => array('class' => 'custom', 'placeholder' => 'custom bar')); $typeGuessOptions = array('data_class' => 'foo', 'multiple' => true, 'attr' => array('placeholder' => 'bar', 'maxlength' => 10)); var_dump( array_replace_recursive($typeGuessOptions, $options) );
Output for git.master, git.master_jit, rfc.property-hooks
array(4) { ["data_class"]=> string(6) "foobar" ["multiple"]=> bool(true) ["attr"]=> array(3) { ["placeholder"]=> string(10) "custom bar" ["maxlength"]=> int(10) ["class"]=> string(6) "custom" } ["required"]=> bool(true) }

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