3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php date_default_timezone_set('Russia/Moscow'); //$date = new DateTime(strtotime("now"), 'Russia/Moscow'); //echo('date = '.$date."\n"); $date_format = "d.m.Y"; //$dat = $dat->format($date_format); $dat = strtotime('now'); $che = strtotime('31.05.2013 23:59:59'); if($dat >= $che) { echo($dat.' >= '.$che.' меняем баннеры'); }else{ echo($dat.' < '.$che); }
Output for 5.6.28, 7.0.12 - 7.1.0
Notice: date_default_timezone_set(): Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1369978124 < 1370037599
Output for 7.0.6
Notice: date_default_timezone_set(): Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1462262788 >= 1370037599 меняем баннеры
Output for 7.0.5
Notice: date_default_timezone_set(): Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1459630466 >= 1370037599 меняем баннеры
Output for 7.0.4
Notice: date_default_timezone_set(): Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1457598548 >= 1370037599 меняем баннеры
Output for 7.0.3
Notice: date_default_timezone_set(): Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1458292072 >= 1370037599 меняем баннеры
Output for 7.0.2
Notice: date_default_timezone_set(): Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1458658858 >= 1370037599 меняем баннеры
Output for 7.0.1
Notice: date_default_timezone_set(): Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1458762238 >= 1370037599 меняем баннеры
Output for 7.0.0
Notice: date_default_timezone_set(): Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1459026987 >= 1370037599 меняем баннеры
Output for hhvm-3.12.0
Notice: Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1457781957 >= 1370037599 меняем баннеры
Output for hhvm-3.10.0
Notice: Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1459331069 >= 1370037599 меняем баннеры
Output for 5.6.21
Notice: date_default_timezone_set(): Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1462159576 >= 1370037599 меняем баннеры
Output for 5.6.20
Notice: date_default_timezone_set(): Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1460231520 >= 1370037599 меняем баннеры
Output for 5.6.19
Notice: date_default_timezone_set(): Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1457368617 >= 1370037599 меняем баннеры
Output for 5.6.18
Notice: date_default_timezone_set(): Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1458002440 >= 1370037599 меняем баннеры
Output for 5.6.17
Notice: date_default_timezone_set(): Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1458393731 >= 1370037599 меняем баннеры
Output for 5.6.16
Notice: date_default_timezone_set(): Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1459116192 >= 1370037599 меняем баннеры
Output for 5.6.15
Notice: date_default_timezone_set(): Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1459206505 >= 1370037599 меняем баннеры
Output for 5.6.14
Notice: date_default_timezone_set(): Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1459560485 >= 1370037599 меняем баннеры
Output for 5.6.13
Notice: date_default_timezone_set(): Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1460697729 >= 1370037599 меняем баннеры
Output for 5.6.12
Notice: date_default_timezone_set(): Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1461092942 >= 1370037599 меняем баннеры
Output for 5.6.11
Notice: date_default_timezone_set(): Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1461377532 >= 1370037599 меняем баннеры
Output for 5.6.10
Notice: date_default_timezone_set(): Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1461556554 >= 1370037599 меняем баннеры
Output for 5.6.9
Notice: date_default_timezone_set(): Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1461747217 >= 1370037599 меняем баннеры
Output for 5.6.8
Notice: date_default_timezone_set(): Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1461949269 >= 1370037599 меняем баннеры
Output for 5.5.35
Notice: date_default_timezone_set(): Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1463901227 >= 1370037599 меняем баннеры
Output for 5.5.34
Notice: date_default_timezone_set(): Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1460326381 >= 1370037599 меняем баннеры
Output for 5.5.33
Notice: date_default_timezone_set(): Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1457465631 >= 1370037599 меняем баннеры
Output for 5.5.32
Notice: date_default_timezone_set(): Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1458180949 >= 1370037599 меняем баннеры
Output for 5.5.31
Notice: date_default_timezone_set(): Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1458490075 >= 1370037599 меняем баннеры
Output for 5.5.30
Notice: date_default_timezone_set(): Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1459472702 >= 1370037599 меняем баннеры
Output for 5.5.29
Notice: date_default_timezone_set(): Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1460834916 >= 1370037599 меняем баннеры
Output for 5.5.28
Notice: date_default_timezone_set(): Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1461190541 >= 1370037599 меняем баннеры
Output for 5.5.27
Notice: date_default_timezone_set(): Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1461285779 >= 1370037599 меняем баннеры
Output for 5.5.26
Notice: date_default_timezone_set(): Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1461651769 >= 1370037599 меняем баннеры
Output for 5.5.25
Notice: date_default_timezone_set(): Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1461847255 >= 1370037599 меняем баннеры
Output for 5.5.24
Notice: date_default_timezone_set(): Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1464033717 >= 1370037599 меняем баннеры
Output for 5.4.45
Notice: date_default_timezone_set(): Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1455873239 >= 1370037599 меняем баннеры
Output for 5.4.43 - 5.4.44
Notice: date_default_timezone_set(): Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1455873240 >= 1370037599 меняем баннеры
Output for 5.4.41 - 5.4.42
Notice: date_default_timezone_set(): Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1455873241 >= 1370037599 меняем баннеры
Output for 5.4.38 - 5.4.40
Notice: date_default_timezone_set(): Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1455873242 >= 1370037599 меняем баннеры
Output for 5.4.35 - 5.4.37
Notice: date_default_timezone_set(): Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1455873243 >= 1370037599 меняем баннеры
Output for 5.3.29, 5.4.32 - 5.4.34
Notice: date_default_timezone_set(): Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1455873244 >= 1370037599 меняем баннеры
Output for 5.4.27 - 5.4.31
Notice: date_default_timezone_set(): Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1455873245 >= 1370037599 меняем баннеры
Output for 5.4.23 - 5.4.26
Notice: date_default_timezone_set(): Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1455873246 >= 1370037599 меняем баннеры
Output for 5.3.28, 5.4.20 - 5.4.22
Notice: date_default_timezone_set(): Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1455873247 >= 1370037599 меняем баннеры
Output for 5.3.27, 5.4.16 - 5.4.19
Notice: date_default_timezone_set(): Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1455873248 >= 1370037599 меняем баннеры
Output for 5.3.24 - 5.3.26, 5.4.13 - 5.4.15
Notice: date_default_timezone_set(): Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1455873249 >= 1370037599 меняем баннеры
Output for 5.3.20 - 5.3.23, 5.4.9 - 5.4.12
Notice: date_default_timezone_set(): Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1455873250 >= 1370037599 меняем баннеры
Output for 5.3.16 - 5.3.19, 5.4.6 - 5.4.8
Notice: date_default_timezone_set(): Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1455873251 >= 1370037599 меняем баннеры
Output for 5.3.13 - 5.3.15, 5.4.3 - 5.4.5
Notice: date_default_timezone_set(): Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1455873252 >= 1370037599 меняем баннеры
Output for 5.3.8 - 5.3.12, 5.4.0 - 5.4.2
Notice: date_default_timezone_set(): Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1455873253 >= 1370037599 меняем баннеры
Output for 5.2.16 - 5.2.17, 5.3.4 - 5.3.7
Notice: date_default_timezone_set(): Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1455873254 >= 1370037599 меняем баннеры
Output for 5.2.11 - 5.2.15, 5.3.1 - 5.3.3
Notice: date_default_timezone_set(): Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1455873255 >= 1370037599 меняем баннеры
Output for 5.2.6 - 5.2.10, 5.3.0
Notice: date_default_timezone_set(): Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1455873256 >= 1370037599 меняем баннеры
Output for 5.2.0 - 5.2.5
Notice: date_default_timezone_set(): Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1455873257 >= 1370037599 меняем баннеры
Output for 5.1.2 - 5.1.6
Notice: date_default_timezone_set(): Timezone ID 'Russia/Moscow' is invalid in /in/QBHoU on line 2 1455873258 >= 1370037599 меняем баннеры
Output for 5.1.1
Notice: strtotime(): Timezone setting (date.timezone) or TZ environment variable contains an unknown timezone in /in/QBHoU on line 8 Notice: strtotime(): Timezone setting (date.timezone) or TZ environment variable contains an unknown timezone in /in/QBHoU on line 9 1455873258 >= 1370044799 меняем баннеры
Output for 5.1.0
Notice: strtotime(): Timezone setting (date.timezone) or TZ environment variable contains an unknown timezone in /in/QBHoU on line 8 Notice: strtotime(): Timezone setting (date.timezone) or TZ environment variable contains an unknown timezone in /in/QBHoU on line 9 1455873259 >= 1370044799 меняем баннеры
Output for 5.0.0 - 5.0.5
Fatal error: Call to undefined function date_default_timezone_set() in /in/QBHoU on line 2
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: date_default_timezone_set() in /in/QBHoU on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: date_default_timezone_set() in /in/QBHoU on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: date_default_timezone_set() in /in/QBHoU on line 2