3v4l.org

run code in 300+ PHP versions simultaneously
<?php $notes = array(1, 1.5, 2, 2.5, 3, 3.5, 4, 4.5, 5, 5.5, 6); foreach ($notes as $note) { echo '(3.5 + '.$note.') / 2 = '.round((3.5 / $note) / 2, 2); }
Output for git.master, git.master_jit, rfc.property-hooks
(3.5 + 1) / 2 = 1.75(3.5 + 1.5) / 2 = 1.17(3.5 + 2) / 2 = 0.88(3.5 + 2.5) / 2 = 0.7(3.5 + 3) / 2 = 0.58(3.5 + 3.5) / 2 = 0.5(3.5 + 4) / 2 = 0.44(3.5 + 4.5) / 2 = 0.39(3.5 + 5) / 2 = 0.35(3.5 + 5.5) / 2 = 0.32(3.5 + 6) / 2 = 0.29

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