3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function imageColumns($cols){ if (isset($_COOKIE["lwwindowsize"])){ if ($_COOKIE["lwwindowsize"]>"2559") { $cols = 8; } elseif ($_COOKIE["lwwindowsize"]>"1919") { $cols = 6; } elseif ($_COOKIE["lwwindowsize"]>"1679") { $cols = 5; } elseif ($_COOKIE["lwwindowsize"]>"1439") { $cols = 4; } elseif ($_COOKIE["lwwindowsize"]>"1150") { $cols = 3; } elseif ($_COOKIE["lwwindowsize"]>"1919") { $cols = 2; } else { $cols = 3; } } } ?>
Output for 4.3.0 - 7.3.0rc4