3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sections = [ [ 'sectionwidth' => 525, 'sectionheight' => 500, 'bg' => 'eaeaea', 'sectioncolor' => 'c0c0c0', 'input' => [ [ 'inputtext' => 'test', 'inputwidth' => 505 ], [ 'inputtext' => 'test2', 'inputwidth' => 505 ] ] ], [ 'sectionwidth' => 525, 'sectionheight' => 500, 'bg' => '222222', 'sectioncolor' => 'ffffff', 'input' => [ [ 'inputtext' => 'test3', 'inputwidth' => 505 ], [ 'inputtext' => 'test4', 'inputwidth' => 505 ] ] ], ]; foreach ($sections as $section) { echo '<div style="width: '.$section['sectionwidth'].'px; height: '.$section['sectionheight'].'px; background: #'.$section['bg'].'; color: '.$section['sectioncolor'].'">'; foreach ($section['input'] as $input) { echo '<p style="width: '.$input['inputwidth'].'px;">'.$input['inputtext'].'</p>'; } echo '</div>'; }
Output for git.master, git.master_jit, rfc.property-hooks
<div style="width: 525px; height: 500px; background: #eaeaea; color: c0c0c0"><p style="width: 505px;">test</p><p style="width: 505px;">test2</p></div><div style="width: 525px; height: 500px; background: #222222; color: ffffff"><p style="width: 505px;">test3</p><p style="width: 505px;">test4</p></div>

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