3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(json_decode('{"name":"EASI","description":"Un site utilisant WordPress","URL":"http:\/\/back-wp.easi.local","routes":{"\/":{"supports":["HEAD","GET"],"meta":{"self":"http:\/\/back-wp.easi.local\/wp-json\/"}},"\/posts":{"supports":["HEAD","GET","POST"],"meta":{"self":"http:\/\/back-wp.easi.local\/wp-json\/posts"},"accepts_json":true},"\/posts\/<id>":{"supports":["HEAD","GET","POST","PUT","PATCH","DELETE"],"accepts_json":true},"\/posts\/<id>\/revisions":{"supports":["HEAD","GET"]},"\/posts\/<id>\/meta":{"supports":["HEAD","GET","POST"],"accepts_json":true},"\/posts\/<id>\/meta\/<mid>":{"supports":["HEAD","GET","POST","PUT","PATCH","DELETE"],"accepts_json":true},"\/posts\/<id>\/comments":{"supports":["HEAD","GET"]},"\/posts\/<id>\/comments\/<comment>":{"supports":["HEAD","GET","DELETE"]},"\/posts\/types":{"supports":["HEAD","GET"],"meta":{"self":"http:\/\/back-wp.easi.local\/wp-json\/posts\/types"}},"\/posts\/types\/<type>":{"supports":["HEAD","GET"]},"\/posts\/statuses":{"supports":["HEAD","GET"],"meta":{"self":"http:\/\/back-wp.easi.local\/wp-json\/posts\/statuses"}},"\/users":{"supports":["HEAD","GET","POST"],"meta":{"self":"http:\/\/back-wp.easi.local\/wp-json\/users"},"accepts_json":true},"\/users\/<id>":{"supports":["HEAD","GET","POST","PUT","PATCH","DELETE"],"accepts_json":true},"\/users\/me":{"supports":["HEAD","GET"],"meta":{"self":"http:\/\/back-wp.easi.local\/wp-json\/users\/me"}},"\/media":{"supports":["HEAD","GET","POST"],"meta":{"self":"http:\/\/back-wp.easi.local\/wp-json\/media"}},"\/media\/<id>":{"supports":["HEAD","GET","POST","PUT","PATCH","DELETE"]},"\/taxonomies":{"supports":["HEAD","GET"],"meta":{"self":"http:\/\/back-wp.easi.local\/wp-json\/taxonomies"}},"\/taxonomies\/<taxonomy>":{"supports":["HEAD","GET"]},"\/taxonomies\/<taxonomy>\/terms":{"supports":["HEAD","GET"]},"\/taxonomies\/<taxonomy>\/terms\/<term>":{"supports":["HEAD","GET"]},"\/pages":{"supports":["HEAD","GET","POST"],"meta":{"self":"http:\/\/back-wp.easi.local\/wp-json\/pages"},"accepts_json":true},"\/pages\/<id>":{"supports":["HEAD","GET","POST","PUT","PATCH","DELETE"],"accepts_json":true},"\/pages\/<id>\/revisions":{"supports":["HEAD","GET"]},"\/pages\/<id>\/comments":{"supports":["HEAD","GET"]},"\/pages\/<id>\/comments\/<comment>":{"supports":["HEAD","GET","DELETE"]},"\/pages\/<path>":{"supports":["HEAD","GET","POST","PUT","PATCH","DELETE"],"accepts_json":true}},"authentication":{"oauth1":{"request":"http:\/\/back-wp.easi.local\/oauth1\/request","authorize":"http:\/\/back-wp.easi.local\/oauth1\/authorize","access":"http:\/\/back-wp.easi.local\/oauth1\/access","version":"0.1"}},"meta":{"links":{"help":"https:\/\/github.com\/WP-API\/WP-API","profile":"https:\/\/raw.github.com\/WP-API\/WP-API\/master\/docs\/schema.json"}}} '));
Output for 7.0.0 - 7.1.0
object(stdClass)#1 (6) { ["name"]=> string(4) "EASI" ["description"]=> string(27) "Un site utilisant WordPress" ["URL"]=> string(25) "http://back-wp.easi.local" ["routes"]=> object(stdClass)#4 (26) { ["/"]=> object(stdClass)#2 (2) { ["supports"]=> array(2) { [0]=> string(4) "HEAD" [1]=> string(3) "GET" } ["meta"]=> object(stdClass)#3 (1) { ["self"]=> string(34) "http://back-wp.easi.local/wp-json/" } } ["/posts"]=> object(stdClass)#5 (3) { ["supports"]=> array(3) { [0]=> string(4) "HEAD" [1]=> string(3) "GET" [2]=> string(4) "POST" } ["meta"]=> object(stdClass)#6 (1) { ["self"]=> string(39) "http://back-wp.easi.local/wp-json/posts" } ["accepts_json"]=> bool(true) } ["/posts/<id>"]=> object(stdClass)#7 (2) { ["supports"]=> array(6) { [0]=> string(4) "HEAD" [1]=> string(3) "GET" [2]=> string(4) "POST" [3]=> string(3) "PUT" [4]=> string(5) "PATCH" [5]=> string(6) "DELETE" } ["accepts_json"]=> bool(true) } ["/posts/<id>/revisions"]=> object(stdClass)#8 (1) { ["supports"]=> array(2) { [0]=> string(4) "HEAD" [1]=> string(3) "GET" } } ["/posts/<id>/meta"]=> object(stdClass)#9 (2) { ["supports"]=> array(3) { [0]=> string(4) "HEAD" [1]=> string(3) "GET" [2]=> string(4) "POST" } ["accepts_json"]=> bool(true) } ["/posts/<id>/meta/<mid>"]=> object(stdClass)#10 (2) { ["supports"]=> array(6) { [0]=> string(4) "HEAD" [1]=> string(3) "GET" [2]=> string(4) "POST" [3]=> string(3) "PUT" [4]=> string(5) "PATCH" [5]=> string(6) "DELETE" } ["accepts_json"]=> bool(true) } ["/posts/<id>/comments"]=> object(stdClass)#11 (1) { ["supports"]=> array(2) { [0]=> string(4) "HEAD" [1]=> string(3) "GET" } } ["/posts/<id>/comments/<comment>"]=> object(stdClass)#12 (1) { ["supports"]=> array(3) { [0]=> string(4) "HEAD" [1]=> string(3) "GET" [2]=> string(6) "DELETE" } } ["/posts/types"]=> object(stdClass)#13 (2) { ["supports"]=> array(2) { [0]=> string(4) "HEAD" [1]=> string(3) "GET" } ["meta"]=> object(stdClass)#14 (1) { ["self"]=> string(45) "http://back-wp.easi.local/wp-json/posts/types" } } ["/posts/types/<type>"]=> object(stdClass)#15 (1) { ["supports"]=> array(2) { [0]=> string(4) "HEAD" [1]=> string(3) "GET" } } ["/posts/statuses"]=> object(stdClass)#16 (2) { ["supports"]=> array(2) { [0]=> string(4) "HEAD" [1]=> string(3) "GET" } ["meta"]=> object(stdClass)#17 (1) { ["self"]=> string(48) "http://back-wp.easi.local/wp-json/posts/statuses" } } ["/users"]=> object(stdClass)#18 (3) { ["supports"]=> array(3) { [0]=> string(4) "HEAD" [1]=> string(3) "GET" [2]=> string(4) "POST" } ["meta"]=> object(stdClass)#19 (1) { ["self"]=> string(39) "http://back-wp.easi.local/wp-json/users" } ["accepts_json"]=> bool(true) } ["/users/<id>"]=> object(stdClass)#20 (2) { ["supports"]=> array(6) { [0]=> string(4) "HEAD" [1]=> string(3) "GET" [2]=> string(4) "POST" [3]=> string(3) "PUT" [4]=> string(5) "PATCH" [5]=> string(6) "DELETE" } ["accepts_json"]=> bool(true) } ["/users/me"]=> object(stdClass)#21 (2) { ["supports"]=> array(2) { [0]=> string(4) "HEAD" [1]=> string(3) "GET" } ["meta"]=> object(stdClass)#22 (1) { ["self"]=> string(42) "http://back-wp.easi.local/wp-json/users/me" } } ["/media"]=> object(stdClass)#23 (2) { ["supports"]=> array(3) { [0]=> string(4) "HEAD" [1]=> string(3) "GET" [2]=> string(4) "POST" } ["meta"]=> object(stdClass)#24 (1) { ["self"]=> string(39) "http://back-wp.easi.local/wp-json/media" } } ["/media/<id>"]=> object(stdClass)#25 (1) { ["supports"]=> array(6) { [0]=> string(4) "HEAD" [1]=> string(3) "GET" [2]=> string(4) "POST" [3]=> string(3) "PUT" [4]=> string(5) "PATCH" [5]=> string(6) "DELETE" } } ["/taxonomies"]=> object(stdClass)#26 (2) { ["supports"]=> array(2) { [0]=> string(4) "HEAD" [1]=> string(3) "GET" } ["meta"]=> object(stdClass)#27 (1) { ["self"]=> string(44) "http://back-wp.easi.local/wp-json/taxonomies" } } ["/taxonomies/<taxonomy>"]=> object(stdClass)#28 (1) { ["supports"]=> array(2) { [0]=> string(4) "HEAD" [1]=> string(3) "GET" } } ["/taxonomies/<taxonomy>/terms"]=> object(stdClass)#29 (1) { ["supports"]=> array(2) { [0]=> string(4) "HEAD" [1]=> string(3) "GET" } } ["/taxonomies/<taxonomy>/terms/<term>"]=> object(stdClass)#30 (1) { ["supports"]=> array(2) { [0]=> string(4) "HEAD" [1]=> string(3) "GET" } } ["/pages"]=> object(stdClass)#31 (3) { ["supports"]=> array(3) { [0]=> string(4) "HEAD" [1]=> string(3) "GET" [2]=> string(4) "POST" } ["meta"]=> object(stdClass)#32 (1) { ["self"]=> string(39) "http://back-wp.easi.local/wp-json/pages" } ["accepts_json"]=> bool(true) } ["/pages/<id>"]=> object(stdClass)#33 (2) { ["supports"]=> array(6) { [0]=> string(4) "HEAD" [1]=> string(3) "GET" [2]=> string(4) "POST" [3]=> string(3) "PUT" [4]=> string(5) "PATCH" [5]=> string(6) "DELETE" } ["accepts_json"]=> bool(true) } ["/pages/<id>/revisions"]=> object(stdClass)#34 (1) { ["supports"]=> array(2) { [0]=> string(4) "HEAD" [1]=> string(3) "GET" } } ["/pages/<id>/comments"]=> object(stdClass)#35 (1) { ["supports"]=> array(2) { [0]=> string(4) "HEAD" [1]=> string(3) "GET" } } ["/pages/<id>/comments/<comment>"]=> object(stdClass)#36 (1) { ["supports"]=> array(3) { [0]=> string(4) "HEAD" [1]=> string(3) "GET" [2]=> string(6) "DELETE" } } ["/pages/<path>"]=> object(stdClass)#37 (2) { ["supports"]=> array(6) { [0]=> string(4) "HEAD" [1]=> string(3) "GET" [2]=> string(4) "POST" [3]=> string(3) "PUT" [4]=> string(5) "PATCH" [5]=> string(6) "DELETE" } ["accepts_json"]=> bool(true) } } ["authentication"]=> object(stdClass)#39 (1) { ["oauth1"]=> object(stdClass)#38 (4) { ["request"]=> string(40) "http://back-wp.easi.local/oauth1/request" ["authorize"]=> string(42) "http://back-wp.easi.local/oauth1/authorize" ["access"]=> string(39) "http://back-wp.easi.local/oauth1/access" ["version"]=> string(3) "0.1" } } ["meta"]=> object(stdClass)#41 (1) { ["links"]=> object(stdClass)#40 (2) { ["help"]=> string(32) "https://github.com/WP-API/WP-API" ["profile"]=> string(60) "https://raw.github.com/WP-API/WP-API/master/docs/schema.json" } } }
Output for 5.2.0 - 5.6.28
object(stdClass)#1 (6) { ["name"]=> string(4) "EASI" ["description"]=> string(27) "Un site utilisant WordPress" ["URL"]=> string(25) "http://back-wp.easi.local" ["routes"]=> object(stdClass)#2 (26) { ["/"]=> object(stdClass)#3 (2) { ["supports"]=> array(2) { [0]=> string(4) "HEAD" [1]=> string(3) "GET" } ["meta"]=> object(stdClass)#4 (1) { ["self"]=> string(34) "http://back-wp.easi.local/wp-json/" } } ["/posts"]=> object(stdClass)#5 (3) { ["supports"]=> array(3) { [0]=> string(4) "HEAD" [1]=> string(3) "GET" [2]=> string(4) "POST" } ["meta"]=> object(stdClass)#6 (1) { ["self"]=> string(39) "http://back-wp.easi.local/wp-json/posts" } ["accepts_json"]=> bool(true) } ["/posts/<id>"]=> object(stdClass)#7 (2) { ["supports"]=> array(6) { [0]=> string(4) "HEAD" [1]=> string(3) "GET" [2]=> string(4) "POST" [3]=> string(3) "PUT" [4]=> string(5) "PATCH" [5]=> string(6) "DELETE" } ["accepts_json"]=> bool(true) } ["/posts/<id>/revisions"]=> object(stdClass)#8 (1) { ["supports"]=> array(2) { [0]=> string(4) "HEAD" [1]=> string(3) "GET" } } ["/posts/<id>/meta"]=> object(stdClass)#9 (2) { ["supports"]=> array(3) { [0]=> string(4) "HEAD" [1]=> string(3) "GET" [2]=> string(4) "POST" } ["accepts_json"]=> bool(true) } ["/posts/<id>/meta/<mid>"]=> object(stdClass)#10 (2) { ["supports"]=> array(6) { [0]=> string(4) "HEAD" [1]=> string(3) "GET" [2]=> string(4) "POST" [3]=> string(3) "PUT" [4]=> string(5) "PATCH" [5]=> string(6) "DELETE" } ["accepts_json"]=> bool(true) } ["/posts/<id>/comments"]=> object(stdClass)#11 (1) { ["supports"]=> array(2) { [0]=> string(4) "HEAD" [1]=> string(3) "GET" } } ["/posts/<id>/comments/<comment>"]=> object(stdClass)#12 (1) { ["supports"]=> array(3) { [0]=> string(4) "HEAD" [1]=> string(3) "GET" [2]=> string(6) "DELETE" } } ["/posts/types"]=> object(stdClass)#13 (2) { ["supports"]=> array(2) { [0]=> string(4) "HEAD" [1]=> string(3) "GET" } ["meta"]=> object(stdClass)#14 (1) { ["self"]=> string(45) "http://back-wp.easi.local/wp-json/posts/types" } } ["/posts/types/<type>"]=> object(stdClass)#15 (1) { ["supports"]=> array(2) { [0]=> string(4) "HEAD" [1]=> string(3) "GET" } } ["/posts/statuses"]=> object(stdClass)#16 (2) { ["supports"]=> array(2) { [0]=> string(4) "HEAD" [1]=> string(3) "GET" } ["meta"]=> object(stdClass)#17 (1) { ["self"]=> string(48) "http://back-wp.easi.local/wp-json/posts/statuses" } } ["/users"]=> object(stdClass)#18 (3) { ["supports"]=> array(3) { [0]=> string(4) "HEAD" [1]=> string(3) "GET" [2]=> string(4) "POST" } ["meta"]=> object(stdClass)#19 (1) { ["self"]=> string(39) "http://back-wp.easi.local/wp-json/users" } ["accepts_json"]=> bool(true) } ["/users/<id>"]=> object(stdClass)#20 (2) { ["supports"]=> array(6) { [0]=> string(4) "HEAD" [1]=> string(3) "GET" [2]=> string(4) "POST" [3]=> string(3) "PUT" [4]=> string(5) "PATCH" [5]=> string(6) "DELETE" } ["accepts_json"]=> bool(true) } ["/users/me"]=> object(stdClass)#21 (2) { ["supports"]=> array(2) { [0]=> string(4) "HEAD" [1]=> string(3) "GET" } ["meta"]=> object(stdClass)#22 (1) { ["self"]=> string(42) "http://back-wp.easi.local/wp-json/users/me" } } ["/media"]=> object(stdClass)#23 (2) { ["supports"]=> array(3) { [0]=> string(4) "HEAD" [1]=> string(3) "GET" [2]=> string(4) "POST" } ["meta"]=> object(stdClass)#24 (1) { ["self"]=> string(39) "http://back-wp.easi.local/wp-json/media" } } ["/media/<id>"]=> object(stdClass)#25 (1) { ["supports"]=> array(6) { [0]=> string(4) "HEAD" [1]=> string(3) "GET" [2]=> string(4) "POST" [3]=> string(3) "PUT" [4]=> string(5) "PATCH" [5]=> string(6) "DELETE" } } ["/taxonomies"]=> object(stdClass)#26 (2) { ["supports"]=> array(2) { [0]=> string(4) "HEAD" [1]=> string(3) "GET" } ["meta"]=> object(stdClass)#27 (1) { ["self"]=> string(44) "http://back-wp.easi.local/wp-json/taxonomies" } } ["/taxonomies/<taxonomy>"]=> object(stdClass)#28 (1) { ["supports"]=> array(2) { [0]=> string(4) "HEAD" [1]=> string(3) "GET" } } ["/taxonomies/<taxonomy>/terms"]=> object(stdClass)#29 (1) { ["supports"]=> array(2) { [0]=> string(4) "HEAD" [1]=> string(3) "GET" } } ["/taxonomies/<taxonomy>/terms/<term>"]=> object(stdClass)#30 (1) { ["supports"]=> array(2) { [0]=> string(4) "HEAD" [1]=> string(3) "GET" } } ["/pages"]=> object(stdClass)#31 (3) { ["supports"]=> array(3) { [0]=> string(4) "HEAD" [1]=> string(3) "GET" [2]=> string(4) "POST" } ["meta"]=> object(stdClass)#32 (1) { ["self"]=> string(39) "http://back-wp.easi.local/wp-json/pages" } ["accepts_json"]=> bool(true) } ["/pages/<id>"]=> object(stdClass)#33 (2) { ["supports"]=> array(6) { [0]=> string(4) "HEAD" [1]=> string(3) "GET" [2]=> string(4) "POST" [3]=> string(3) "PUT" [4]=> string(5) "PATCH" [5]=> string(6) "DELETE" } ["accepts_json"]=> bool(true) } ["/pages/<id>/revisions"]=> object(stdClass)#34 (1) { ["supports"]=> array(2) { [0]=> string(4) "HEAD" [1]=> string(3) "GET" } } ["/pages/<id>/comments"]=> object(stdClass)#35 (1) { ["supports"]=> array(2) { [0]=> string(4) "HEAD" [1]=> string(3) "GET" } } ["/pages/<id>/comments/<comment>"]=> object(stdClass)#36 (1) { ["supports"]=> array(3) { [0]=> string(4) "HEAD" [1]=> string(3) "GET" [2]=> string(6) "DELETE" } } ["/pages/<path>"]=> object(stdClass)#37 (2) { ["supports"]=> array(6) { [0]=> string(4) "HEAD" [1]=> string(3) "GET" [2]=> string(4) "POST" [3]=> string(3) "PUT" [4]=> string(5) "PATCH" [5]=> string(6) "DELETE" } ["accepts_json"]=> bool(true) } } ["authentication"]=> object(stdClass)#38 (1) { ["oauth1"]=> object(stdClass)#39 (4) { ["request"]=> string(40) "http://back-wp.easi.local/oauth1/request" ["authorize"]=> string(42) "http://back-wp.easi.local/oauth1/authorize" ["access"]=> string(39) "http://back-wp.easi.local/oauth1/access" ["version"]=> string(3) "0.1" } } ["meta"]=> object(stdClass)#40 (1) { ["links"]=> object(stdClass)#41 (2) { ["help"]=> string(32) "https://github.com/WP-API/WP-API" ["profile"]=> string(60) "https://raw.github.com/WP-API/WP-API/master/docs/schema.json" } } }
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function json_decode() in /in/WLotV on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: json_decode() in /in/WLotV on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: json_decode() in /in/WLotV on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: json_decode() in /in/WLotV on line 3