3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pencilbanner = 'hol'; $bannerData = match($pencilbanner) { 'std' => ['standard-banner', 'This is the standard banner'], 'hol' => ['holiday-banner', 'This is the holiday banner'], 'lim' => ['standard-banner', 'This is the limited time only banner'], default => [], }; if ($bannerData) { vprintf('<div class="banner %s"><h4>%s</h4></div>', $bannerData); }
Output for git.master, git.master_jit, rfc.property-hooks
<div class="banner holiday-banner"><h4>This is the holiday banner</h4></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:
112.21 ms | 405 KiB | 5 Q