3v4l.org

run code in 300+ PHP versions simultaneously
<?php switch ( 42 ) { case 1: echo 'One. Unlucky!'; break; case 2: case 3: case 4: case 5: echo 'Meh. Not bad.'; break; case 6: echo 'Yay! A six!'; break; default: echo 'Huh? I think this dice is broken...'; break; }
Output for git.master, git.master_jit, rfc.property-hooks
Huh? I think this dice is broken...

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