<?php
class SerialDateTime extends DateTime implements JsonSerializable{
public function jsonSerialize(){
return $this->getTimestamp();
}
}
class StringDateTime extends DateTime{
public function __toString(){
return ''.$this->getTimestamp();
}
}
$j = new SerialDateTime;
$s = new StringDateTime;
//echo $j."\n";
echo $s."\n";
echo json_encode(array($j, $s));
Deprecated: Return type of SerialDateTime::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/FaXks on line 5
1378912524
[1378912524,{"date":"2013-09-11 17:15:24.010112","timezone_type":3,"timezone":"Europe\/Amsterdam"}]
Output for 8.3.5
Deprecated: Return type of SerialDateTime::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/FaXks on line 5
1378912524
[1378912524,{"date":"2013-09-11 17:15:24.013862","timezone_type":3,"timezone":"Europe\/Amsterdam"}]
Output for 8.3.4
Deprecated: Return type of SerialDateTime::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/FaXks on line 5
1378912524
[1378912524,{"date":"2013-09-11 17:15:24.007203","timezone_type":3,"timezone":"Europe\/Amsterdam"}]
Output for 8.3.3
Deprecated: Return type of SerialDateTime::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/FaXks on line 5
1378912524
[1378912524,{"date":"2013-09-11 17:15:24.006991","timezone_type":3,"timezone":"Europe\/Amsterdam"}]
Output for 8.3.2
Deprecated: Return type of SerialDateTime::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/FaXks on line 5
1378912524
[1378912524,{"date":"2013-09-11 17:15:24.003543","timezone_type":3,"timezone":"Europe\/Amsterdam"}]
Output for 8.3.1
Deprecated: Return type of SerialDateTime::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/FaXks on line 5
1378912524
[1378912524,{"date":"2013-09-11 17:15:24.003688","timezone_type":3,"timezone":"Europe\/Amsterdam"}]
Output for 8.3.0
Deprecated: Return type of SerialDateTime::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/FaXks on line 5
1378912524
[1378912524,{"date":"2013-09-11 17:15:24.007327","timezone_type":3,"timezone":"Europe\/Amsterdam"}]
Output for 8.2.18
Deprecated: Return type of SerialDateTime::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/FaXks on line 5
1378912524
[1378912524,{"date":"2013-09-11 17:15:24.007207","timezone_type":3,"timezone":"Europe\/Amsterdam"}]
Output for 8.2.17
Deprecated: Return type of SerialDateTime::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/FaXks on line 5
1378912524
[1378912524,{"date":"2013-09-11 17:15:24.007507","timezone_type":3,"timezone":"Europe\/Amsterdam"}]
Output for 8.2.16
Deprecated: Return type of SerialDateTime::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/FaXks on line 5
1378912524
[1378912524,{"date":"2013-09-11 17:15:24.006768","timezone_type":3,"timezone":"Europe\/Amsterdam"}]
Output for 8.2.15
Deprecated: Return type of SerialDateTime::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/FaXks on line 5
1378912524
[1378912524,{"date":"2013-09-11 17:15:24.003767","timezone_type":3,"timezone":"Europe\/Amsterdam"}]
Output for 8.2.14
Deprecated: Return type of SerialDateTime::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/FaXks on line 5
1378912524
[1378912524,{"date":"2013-09-11 17:15:24.003829","timezone_type":3,"timezone":"Europe\/Amsterdam"}]
Output for 8.2.13
Deprecated: Return type of SerialDateTime::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/FaXks on line 5
1378912524
[1378912524,{"date":"2013-09-11 17:15:24.008665","timezone_type":3,"timezone":"Europe\/Amsterdam"}]
Output for 8.2.12
Deprecated: Return type of SerialDateTime::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/FaXks on line 5
1378912524
[1378912524,{"date":"2013-09-11 17:15:24.003838","timezone_type":3,"timezone":"Europe\/Amsterdam"}]
Output for 8.2.11
Deprecated: Return type of SerialDateTime::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/FaXks on line 5
1378912524
[1378912524,{"date":"2013-09-11 17:15:24.004256","timezone_type":3,"timezone":"Europe\/Amsterdam"}]
Output for 8.2.10
Deprecated: Return type of SerialDateTime::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/FaXks on line 5
1378912524
[1378912524,{"date":"2013-09-11 17:15:24.005378","timezone_type":3,"timezone":"Europe\/Amsterdam"}]
Output for 8.2.9
Deprecated: Return type of SerialDateTime::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/FaXks on line 5
1378912524
[1378912524,{"date":"2013-09-11 17:15:24.003785","timezone_type":3,"timezone":"Europe\/Amsterdam"}]
Output for 8.2.8
Deprecated: Return type of SerialDateTime::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/FaXks on line 5
1378912524
[1378912524,{"date":"2013-09-11 17:15:24.003860","timezone_type":3,"timezone":"Europe\/Amsterdam"}]
Output for 8.2.7
Deprecated: Return type of SerialDateTime::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/FaXks on line 5
1378912524
[1378912524,{"date":"2013-09-11 17:15:24.003993","timezone_type":3,"timezone":"Europe\/Amsterdam"}]
Output for 8.2.6
Deprecated: Return type of SerialDateTime::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/FaXks on line 5
1378912524
[1378912524,{"date":"2013-09-11 17:15:24.004209","timezone_type":3,"timezone":"Europe\/Amsterdam"}]
Output for 8.2.5
Deprecated: Return type of SerialDateTime::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/FaXks on line 5
1378912524
[1378912524,{"date":"2013-09-11 17:15:24.003922","timezone_type":3,"timezone":"Europe\/Amsterdam"}]
Output for 8.2.4
Deprecated: Return type of SerialDateTime::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/FaXks on line 5
1378912524
[1378912524,{"date":"2013-09-11 17:15:24.003723","timezone_type":3,"timezone":"Europe\/Amsterdam"}]
Output for 8.2.3
Deprecated: Return type of SerialDateTime::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/FaXks on line 5
1378912524
[1378912524,{"date":"2013-09-11 17:15:24.003886","timezone_type":3,"timezone":"Europe\/Amsterdam"}]
Output for 8.2.2
Deprecated: Return type of SerialDateTime::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/FaXks on line 5
1378912524
[1378912524,{"date":"2013-09-11 17:15:24.004075","timezone_type":3,"timezone":"Europe\/Amsterdam"}]
Output for 8.2.1
Deprecated: Return type of SerialDateTime::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/FaXks on line 5
1378912524
[1378912524,{"date":"2013-09-11 17:15:24.005624","timezone_type":3,"timezone":"Europe\/Amsterdam"}]
Output for 8.2.0
Deprecated: Return type of SerialDateTime::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/FaXks on line 5
1378912524
[1378912524,{"date":"2013-09-11 17:15:24.004064","timezone_type":3,"timezone":"Europe\/Amsterdam"}]
Output for 8.1.28
Deprecated: Return type of SerialDateTime::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/FaXks on line 5
1378912524
[1378912524,{"date":"2013-09-11 17:15:24.006790","timezone_type":3,"timezone":"Europe\/Amsterdam"}]
Output for 8.1.27
Deprecated: Return type of SerialDateTime::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/FaXks on line 5
1378912524
[1378912524,{"date":"2013-09-11 17:15:24.003728","timezone_type":3,"timezone":"Europe\/Amsterdam"}]
Output for 8.1.26
Deprecated: Return type of SerialDateTime::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/FaXks on line 5
1378912524
[1378912524,{"date":"2013-09-11 17:15:24.003880","timezone_type":3,"timezone":"Europe\/Amsterdam"}]
Output for 8.1.25
Deprecated: Return type of SerialDateTime::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/FaXks on line 5
1378912524
[1378912524,{"date":"2013-09-11 17:15:24.003486","timezone_type":3,"timezone":"Europe\/Amsterdam"}]
Output for 8.1.24
Deprecated: Return type of SerialDateTime::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/FaXks on line 5
1378912524
[1378912524,{"date":"2013-09-11 17:15:24.003806","timezone_type":3,"timezone":"Europe\/Amsterdam"}]
Output for 8.1.23
Deprecated: Return type of SerialDateTime::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/FaXks on line 5
1378912524
[1378912524,{"date":"2013-09-11 17:15:24.004868","timezone_type":3,"timezone":"Europe\/Amsterdam"}]
Output for 8.1.22
Deprecated: Return type of SerialDateTime::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/FaXks on line 5
1378912524
[1378912524,{"date":"2013-09-11 17:15:24.003736","timezone_type":3,"timezone":"Europe\/Amsterdam"}]
Output for 8.1.21
Deprecated: Return type of SerialDateTime::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/FaXks on line 5
1378912524
[1378912524,{"date":"2013-09-11 17:15:24.003763","timezone_type":3,"timezone":"Europe\/Amsterdam"}]
Output for 8.1.20
Deprecated: Return type of SerialDateTime::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/FaXks on line 5
1378912524
[1378912524,{"date":"2013-09-11 17:15:24.004349","timezone_type":3,"timezone":"Europe\/Amsterdam"}]
Output for 8.1.19
Deprecated: Return type of SerialDateTime::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/FaXks on line 5
1378912524
[1378912524,{"date":"2013-09-11 17:15:24.003776","timezone_type":3,"timezone":"Europe\/Amsterdam"}]
Output for 8.1.18
Deprecated: Return type of SerialDateTime::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/FaXks on line 5
1378912524
[1378912524,{"date":"2013-09-11 17:15:24.003831","timezone_type":3,"timezone":"Europe\/Amsterdam"}]
Output for 8.1.17
Deprecated: Return type of SerialDateTime::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/FaXks on line 5
1378912524
[1378912524,{"date":"2013-09-11 17:15:24.003961","timezone_type":3,"timezone":"Europe\/Amsterdam"}]
Output for 8.1.16
Deprecated: Return type of SerialDateTime::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/FaXks on line 5
1378912524
[1378912524,{"date":"2013-09-11 17:15:24.003599","timezone_type":3,"timezone":"Europe\/Amsterdam"}]
Output for 8.1.15
Deprecated: Return type of SerialDateTime::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/FaXks on line 5
1378912524
[1378912524,{"date":"2013-09-11 17:15:24.003811","timezone_type":3,"timezone":"Europe\/Amsterdam"}]
Output for 8.1.14
Deprecated: Return type of SerialDateTime::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/FaXks on line 5
1378912524
[1378912524,{"date":"2013-09-11 17:15:24.003647","timezone_type":3,"timezone":"Europe\/Amsterdam"}]
Output for 8.1.13
Deprecated: Return type of SerialDateTime::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/FaXks on line 5
1378912524
[1378912524,{"date":"2013-09-11 17:15:24.003336","timezone_type":3,"timezone":"Europe\/Amsterdam"}]
Output for 8.1.3, 8.1.12
Deprecated: Return type of SerialDateTime::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/FaXks on line 5
1378912524
[1378912524,{"date":"2013-09-11 17:15:24.003795","timezone_type":3,"timezone":"Europe\/Amsterdam"}]
Output for 8.1.11
Deprecated: Return type of SerialDateTime::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/FaXks on line 5
1378912524
[1378912524,{"date":"2013-09-11 17:15:24.003615","timezone_type":3,"timezone":"Europe\/Amsterdam"}]
Output for 8.1.10
Deprecated: Return type of SerialDateTime::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/FaXks on line 5
1378912524
[1378912524,{"date":"2013-09-11 17:15:24.003600","timezone_type":3,"timezone":"Europe\/Amsterdam"}]
Output for 8.1.7, 8.1.9
Deprecated: Return type of SerialDateTime::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/FaXks on line 5
1378912524
[1378912524,{"date":"2013-09-11 17:15:24.003588","timezone_type":3,"timezone":"Europe\/Amsterdam"}]
Output for 8.1.8
Deprecated: Return type of SerialDateTime::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/FaXks on line 5
1378912524
[1378912524,{"date":"2013-09-11 17:15:24.003483","timezone_type":3,"timezone":"Europe\/Amsterdam"}]
Output for 8.1.6
Deprecated: Return type of SerialDateTime::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/FaXks on line 5
1378912524
[1378912524,{"date":"2013-09-11 17:15:24.005430","timezone_type":3,"timezone":"Europe\/Amsterdam"}]
Output for 8.1.5
Deprecated: Return type of SerialDateTime::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/FaXks on line 5
1378912524
[1378912524,{"date":"2013-09-11 17:15:24.003709","timezone_type":3,"timezone":"Europe\/Amsterdam"}]
Output for 8.1.4
Deprecated: Return type of SerialDateTime::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/FaXks on line 5
1378912524
[1378912524,{"date":"2013-09-11 17:15:24.004002","timezone_type":3,"timezone":"Europe\/Amsterdam"}]
Output for 8.1.2
Deprecated: Return type of SerialDateTime::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/FaXks on line 5
1378912524
[1378912524,{"date":"2013-09-11 17:15:24.003820","timezone_type":3,"timezone":"Europe\/Amsterdam"}]
Output for 8.1.1
Deprecated: Return type of SerialDateTime::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/FaXks on line 5
1378912524
[1378912524,{"date":"2013-09-11 17:15:24.003475","timezone_type":3,"timezone":"Europe\/Amsterdam"}]
Output for 8.1.0
Deprecated: Return type of SerialDateTime::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/FaXks on line 5
1378912524
[1378912524,{"date":"2013-09-11 17:15:24.003783","timezone_type":3,"timezone":"Europe\/Amsterdam"}]