3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Testdata $_SESSION['input']['1'] = ''; $_SESSION['input']['2'] = 'JA'; $_SESSION['input']['3'] = null; $_SESSION['input']['4'] = ''; $_SESSION['input']['5'] = 'JA'; $_SESSION['input']['6'] = ''; // Aantal ingevulde inputs tellen $telling = count(array_filter($_SESSION['input'])); // Bedrag bepalen $bedrag = $telling < 3 ? $telling * 8.5 : 20; // Voilá var_dump($bedrag); ?>
Output for git.master, git.master_jit, rfc.property-hooks
float(17)

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:
73.84 ms | 401 KiB | 8 Q