3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $data_r = time() - $announcement['dateline']; if($data_r < 3600) $timedisplay = "minutę temu"; elseif($data_r > 3600*2<=3600*3) $timedisplay = "2 minuty temu"; elseif($data_r > 3600*3<3600*4) $timedisplay = "3 minuty temu"; elseif($data_r > (3600*4) <=(3600*5)) $timedisplay = "4 minuty temu"; elseif($data_r > (3600*5) <=(3600*6)) $timedisplay = "5 minut temu"; elseif($data_r > (3600*6) <=(3600*7)) $timedisplay = "7 minut temu"; elseif($data_r > (3600*7) <=(3600*8) )$timedisplay = "8 minut temu"; elseif($data_r > (3600*9) <=(3600*10) )$timedisplay = "9 minut temu"; elseif($data_r > (3600*10) <=(3600*11) )$timedisplay = "10 minut temu"; elseif($data_r > (3600*15) <=(3600*20) )$timedisplay = "15 minut temu"; elseif($data_r > (3600*20 )<=(3600*30)) $timedisplay = "20 minut temu"; elseif($data_r > (3600*30) <=(3600*45)) $timedisplay = "30 minut temu"; elseif($data_r > (3600*45) <=(3600*60)) $timedisplay = "45 minut temu"; elseif($data_r > (3600*60) <=(3600*120)) $timedisplay = "godzinę temu"; elseif($data_r > (3600*120) <=(3600*(60*3))) $timedisplay = "2 godziny temu"; elseif($data_r > (3600*(60*3)) <=(3600*(60*4))) $timedisplay = "3 godziny temu"; elseif($data_r > (3600*(60*4)) <=(3600*(60*5))) $timedisplay = "4 godziny temu"; elseif($data_r > (3600*(60*5)) <=(3600*(60*6))) $timedisplay = "5 godzin temu"; elseif($data_r > (3600*(60*6)) <=(3600*(60*24))) $timedisplay = "dzisiaj"; elseif($data_r > (3600*(60*24)) <=(3600*((60*24)*7))) $timedisplay = "w tym tygodniu"; elseif($data_r > (3600*((60*24)*7)) <=(3600*((60*24)*30))) $timedisplay = "w tym miesiącu"; elseif($data_r > (3600*((60*24)*30)) <=(3600*((60*24)*360))) $timedisplay = "kilka miesięcy temu"; elseif($data_r > (3600*((60*24)*360))) $timedisplay = "{$anndate} {$anntime}"; var_dump($timedisplay);
Output for 5.4.0 - 5.4.14
Parse error: syntax error, unexpected '<=' (T_IS_SMALLER_OR_EQUAL) in /in/sTgqO on line 6
Process exited with code 255.
Output for 5.3.0 - 5.3.24
Parse error: syntax error, unexpected T_IS_SMALLER_OR_EQUAL in /in/sTgqO on line 6
Process exited with code 255.