3v4l.org

run code in 500+ PHP versions simultaneously
<?php if ($priority < 0) { $priority = 0; } elseif ($priority > 1) { $priority = 1; } // ====================== $priority = max(0, min($priority, 1)); // 0.7 => 0,7 // 1.7 => 1 // -0.3 => 0
Output for git.master, git.master_jit
Warning: Undefined variable $priority in /in/shWEL on line 3 Warning: Undefined variable $priority in /in/shWEL on line 5 Warning: Undefined variable $priority in /in/shWEL on line 11

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:
46.34 ms | 540 KiB | 4 Q