3v4l.org

run code in 300+ PHP versions simultaneously
<?php $lookup = [ -1 => 'down', 0 => 'right', 1 => 'up', ]; foreach ([13, 0, -5] as $amount) { printf( '<h1 class="uk-text-center uk-margin-bottom-remove">%s<i class="uk-icon-caret-%s"></i></h1>', $amount, $lookup[$amount <=> 0] ); echo "\n---\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
<h1 class="uk-text-center uk-margin-bottom-remove">13<i class="uk-icon-caret-up"></i></h1> --- <h1 class="uk-text-center uk-margin-bottom-remove">0<i class="uk-icon-caret-right"></i></h1> --- <h1 class="uk-text-center uk-margin-bottom-remove">-5<i class="uk-icon-caret-down"></i></h1> ---

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