<?php
class A implements \JsonSerializable {
function jsonSerialize($depth = 0) { }
}
class B implements \JsonSerializable {
function jsonSerialize() { }
}
Deprecated: Return type of A::jsonSerialize($depth = 0) should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/BccPi on line 4
Deprecated: Return type of B::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/BccPi on line 7
Fatal error: Interface 'JsonSerializable' not found in /in/BccPi on line 3
Process exited with code 255.
Output for 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/BccPi on line 3
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/BccPi on line 6
Fatal error: Interface 'JsonSerializable' not found in /in/BccPi on line 3
Process exited with code 255.
Output for 5.0.0 - 5.0.4
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/BccPi on line 3
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/BccPi on line 6
Fatal error: Class 'JsonSerializable' not found in /in/BccPi on line 3
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING, expecting '{' in /in/BccPi on line 3
Process exited with code 255.