3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = <<<EOT { "translations": { "b" : "a" }, "pluralForm" :"nplurals=2; plural=(n != 1);" } EOT; echo get_class($string); echo json_decode($string);
based on GZ20n
Output for 7.1.0 - 7.2.0
Warning: get_class() expects parameter 1 to be object, string given in /in/cInH8 on line 12 Recoverable fatal error: Object of class stdClass could not be converted to string in /in/cInH8 on line 13
Process exited with code 255.
Output for 5.3.18 - 7.0.20
Warning: get_class() expects parameter 1 to be object, string given in /in/cInH8 on line 12 Catchable fatal error: Object of class stdClass could not be converted to string in /in/cInH8 on line 13
Process exited with code 255.