3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0