3v4l.org

run code in 300+ PHP versions simultaneously
<?php $contents = <<<'TEXT' else if($rule=='somerule1') echo '{"s":1,"n":"name surname"}'; else if($rule=='somerule2') echo '{"s":1,"n":"another text here"}'; TEXT; $rule = "somerule1"; echo preg_replace("~\Qelse if(\$rule=='$rule')\E\R.+~", "", $contents);
Output for git.master, git.master_jit, rfc.property-hooks
else if($rule=='somerule2') echo '{"s":1,"n":"another text here"}';

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