3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $args= array(45,3,10,34,123); echo JsonSerializable::jsonSerialize($args); ?>
Output for 7.0.0 - 7.2.6
Fatal error: Uncaught Error: Non-static method JsonSerializable::jsonSerialize() cannot be called statically in /in/6EPbW:5 Stack trace: #0 {main} thrown in /in/6EPbW on line 5
Process exited with code 255.
Output for 5.4.0 - 5.6.28
Fatal error: Cannot call abstract method JsonSerializable::jsonSerialize() in /in/6EPbW on line 5
Process exited with code 255.
Output for 5.0.0 - 5.3.29
Fatal error: Class 'JsonSerializable' not found in /in/6EPbW on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Undefined class name 'jsonserializable' in /in/6EPbW on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Undefined class name 'jsonserializable' in /in/6EPbW on line 5