3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php /* $date_time = '2014-09-12T23:55:38Z'; $time_object = new DateTime($date_time, new DateTimeZone('GMT')); var_dump( $time_object ); */ $now = strtotime("now"); $purchasedDate = strtotime($now); echo "dddd\n\n"; echo $purchasedDate;
Output for 5.6.28, 7.0.14 - 7.1.0
dddd -53025098916
Output for 5.1.0 - 5.2.5, 5.4.34 - 5.5.29, 5.5.32, 5.5.34 - 5.6.13, 5.6.15 - 5.6.16, 5.6.18 - 5.6.21, 7.0.0 - 7.0.3, 7.0.5 - 7.0.6
dddd
Output for 7.0.4
dddd -46729819293
Output for 5.6.17
dddd 111844504718
Output for 5.6.14
dddd 40653323995
Output for 5.5.33
dddd 159747083865
Output for 5.5.31
dddd -655898472
Output for 5.5.30
dddd 104650754386
Output for 5.4.20 - 5.4.32
dddd -52804174116
Output for 5.4.0 - 5.4.19
dddd -52772638116
Output for 5.3.11 - 5.3.29
dddd -52741102116
Output for 5.2.9 - 5.3.10
dddd -52709566116
Output for 5.2.6 - 5.2.8
dddd -52678030116
Output for 4.4.1 - 4.4.9, 5.0.3 - 5.0.5
dddd 4389135289200
Output for 5.0.0 - 5.0.2
dddd 4389337807200
Output for 4.3.1 - 4.4.0
dddd 4389135375600
Output for 4.3.0
dddd 4494198722400