3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date= date('md'); $cyfra = substr($date, 0,1); if($cyfra == 0) $date = substr($date, 1,4); if (321 <= $date) echo "prawda"; if((321 <= $date) && ($date < 622)) $style = "wiosna"; elseif($date >= 622 && $date < 923) $style = "lato"; elseif($date >= 923 && $date < 1222) $style = "jesien"; elseif(($date < 321) || ($date >= 1222)) $style = "zima"; echo $style;
Output for 5.5.0 - 5.5.37, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.6 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.31, 8.2.0 - 8.2.26, 8.3.0 - 8.3.14, 8.4.1
zima

preferences:
82.07 ms | 408 KiB | 5 Q