3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var; switch (false) { case isset($var): $var = ''; case $var: // delberiate fall through, case $var is *not* caught, but we end here anyways. $var = 1; case is_string($var): // delebirate fall through, case is_string($var) is *not* caught, but we end here anyways. $var = (string) $var; /* case customGuardFunction() */ default: echo "All checks passed!"; }
Output for git.master, git.master_jit, rfc.property-hooks
All checks passed!

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