3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $date = date_create_from_format( 'U.u', sprintf('%.f', microtime(true)) )->format('YmdHisu'); var_dump($date);
Output for 7.1.0
string(20) "20140710134830004016"
Output for 7.0.14
string(20) "20140710134830003665"
Output for 7.0.6
string(20) "20160503053132853011"
Output for 7.0.5
string(20) "20160402183022985493"
Output for 7.0.4
string(20) "20160310054258029716"
Output for 7.0.3
string(20) "20160318061243500372"
Output for 7.0.2
string(20) "20160322114520211076"
Output for 7.0.1
string(20) "20160323170325766132"
Output for 7.0.0
string(20) "20160326184437451192"
Output for 5.6.28
string(20) "20140710134830004285"
Output for 5.6.21
string(20) "20160502004917668929"
Output for 5.6.20
string(20) "20160409151920107399"
Output for 5.6.19
string(20) "20160307075247054316"
Output for 5.6.18
string(20) "20160314205009663672"
Output for 5.6.17
string(20) "20160319103155214432"
Output for 5.6.16
string(20) "20160327192934122618"
Output for 5.6.15
string(20) "20160328202326407735"
Output for 5.6.14
string(20) "20160401225102312458"
Output for 5.6.13
string(20) "20160415025328385733"
Output for 5.6.12
string(20) "20160419162735011442"
Output for 5.6.11
string(20) "20160422232541439983"
Output for 5.6.10
string(20) "20160425011806406732"
Output for 5.6.9
string(20) "20160427061534841285"
Output for 5.6.8
string(20) "20160429141241231071"
Output for 5.6.7
string(20) "20160525072206432267"
Output for 5.5.35
string(20) "20160522042708538630"
Output for 5.5.34
string(20) "20160410194451779721"
Output for 5.5.33
string(20) "20160308163708196061"
Output for 5.5.32
string(20) "20160316225640401899"
Output for 5.5.31
string(20) "20160320131956651399"
Output for 5.5.30
string(20) "20160331222424904733"
Output for 5.5.29
string(20) "20160416165825943408"
Output for 5.5.28
string(20) "20160420193303600961"
Output for 5.5.27
string(20) "20160421215734437899"
Output for 5.5.26
string(20) "20160426034330268918"
Output for 5.5.25
string(20) "20160428094615374846"
Output for 5.5.24
string(20) "20160523164234680256"
Output for 5.4.45
string(20) "20150920224133435661"
Output for 5.4.44
string(20) "20150920224048332618"
Output for 5.4.43
string(20) "20150920223948435224"
Output for 5.4.42
string(20) "20150920223926539240"
Output for 5.4.41
string(20) "20150920223859228172"
Output for 5.4.40
string(20) "20150920223829818219"
Output for 5.4.39
string(20) "20150920223805542970"
Output for 5.4.38
string(20) "20150304181548942473"
Output for 5.4.37
string(20) "20150304181542596249"
Output for 5.4.36
string(20) "20150304181542250667"
Output for 5.4.35
string(20) "20150304181541850866"
Output for 5.4.34
string(20) "20150304181541438843"
Output for 5.4.32
string(20) "20140913154352258960"
Output for 5.4.31
string(20) "20140913154351517202"
Output for 5.4.30
string(20) "20140710134835451379"
Output for 5.4.29
string(20) "20140710134835540041"
Output for 5.4.28
string(20) "20140710134835646244"
Output for 5.4.27
string(20) "20140710134835691539"
Output for 5.4.26
string(20) "20140710134835748255"
Output for 5.4.25
string(20) "20140710134835798865"
Output for 5.4.24
string(20) "20140710134835857116"
Output for 5.4.23
string(20) "20140710134835933935"
Output for 5.4.22
string(20) "20140710134836013407"
Output for 5.4.21
string(20) "20140710134836179415"
Output for 5.4.20
string(20) "20140710134836246449"
Output for 5.4.19
string(20) "20140710134836289739"
Output for 5.4.18
string(20) "20140710134836359654"
Output for 5.4.17
string(20) "20140710134836417352"
Output for 5.4.16
string(20) "20140710134836476710"
Output for 5.4.15
string(20) "20140710134836547603"
Output for 5.4.14
string(20) "20140710134836633587"
Output for 5.4.13
string(20) "20140710134836725776"
Output for 5.4.12
string(20) "20140710134836813530"
Output for 5.4.11
string(20) "20140710134836856831"
Output for 5.4.10
string(20) "20140710134836899978"
Output for 5.4.9
string(20) "20140710134836945739"
Output for 5.4.8
string(20) "20140710134836990541"
Output for 5.4.7
string(20) "20140710134837036670"
Output for 5.4.6
string(20) "20140710134837079864"
Output for 5.4.5
string(20) "20140710134837122789"
Output for 5.4.4
string(20) "20140710134837165276"
Output for 5.4.3
string(20) "20140710134837211197"
Output for 5.4.2
string(20) "20140710134837255448"
Output for 5.4.1
string(20) "20140710134837301693"
Output for 5.4.0
string(20) "20140710134837346942"
Output for 5.3.29
string(20) "20140913154350147061"
Output for 5.3.28
string(20) "20140710134837401791"
Output for 5.3.27
string(20) "20140710134837452435"
Output for 5.3.26
string(20) "20140710134837501680"
Output for 5.3.25
string(20) "20140710134837549421"
Output for 5.3.24
string(20) "20140710134837599990"
Output for 5.3.23
string(20) "20140710134837654690"
Output for 5.3.22
string(20) "20140710134837722455"
Output for 5.3.21
string(20) "20140710134837775302"
Output for 5.3.20
string(20) "20140710134837830633"
Output for 5.3.19
string(20) "20140710134837877949"
Output for 5.3.18
string(20) "20140710134837927844"
Output for 5.3.17
string(20) "20140710134837973894"
Output for 5.3.16
string(20) "20140710134838019930"
Output for 5.3.15
string(20) "20140710134838071045"
Output for 5.3.14
string(20) "20140710134838116248"
Output for 5.3.13
string(20) "20140710134838199238"
Output for 5.3.12
string(20) "20140710134838260099"
Output for 5.3.11
string(20) "20140710134838313034"
Output for 5.3.10
string(20) "20140710134838365659"
Output for 5.3.9
string(20) "20140710134838416180"
Output for 5.3.8
string(20) "20140710134838464630"
Output for 5.3.7
string(20) "20140710134838509852"
Output for 5.3.6
string(20) "20140710134838556213"
Output for 5.3.5
string(20) "20140710134838601631"
Output for 5.3.4
string(20) "20140710134838648316"
Output for 5.3.3
string(20) "20140710134838691108"
Output for 5.3.2
string(20) "20140710134838744195"
Output for 5.3.1
string(20) "20140710134838803006"
Output for 5.3.0
Fatal error: Call to a member function format() on a non-object in /in/K1h9v on line 5
Process exited with code 255.
Output for 5.0.0 - 5.2.17
Fatal error: Call to undefined function date_create_from_format() in /in/K1h9v on line 3
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/K1h9v on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected T_OBJECT_OPERATOR in /in/K1h9v on line 5
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/K1h9v on line 5
Process exited with code 255.