3v4l.org

run code in 300+ PHP versions simultaneously
<?php $state = 0; switch ($state) { case 'Set Level: 10 %': $return = 1; break; case 'Set Level: 20 %': $return = 2; break; default: $return = 0; break; } echo 'return:'; var_dump($return);
Output for git.master, git.master_jit, rfc.property-hooks
return:int(0)

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:
145.36 ms | 405 KiB | 5 Q