3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $list = json_decode('[ { "id": 0, "guid": "05f08142-6ac5-4bd2-9cab-ce88f6be072b", "isActive": false, "balance": "$1,454.00", "picture": "http://placehold.it/32x32", "age": 31, "name": "Mia Baldwin", "gender": "female", "company": "Quantasis", "email": "miabaldwin@quantasis.com", "phone": "+1 (908) 416-3546", "address": "756 Montana Place, Wedgewood, North Carolina, 9002", "about": "Irure aliqua adipisicing deserunt laboris est. Et exercitation laboris voluptate reprehenderit ad irure veniam consectetur commodo nulla. Ad do laboris voluptate sunt consectetur sit magna esse minim sit do. Adipisicing laboris pariatur sint duis consectetur aliqua nostrud irure qui irure adipisicing excepteur nulla nostrud. Ipsum do est nostrud Lorem consectetur ullamco dolore nostrud excepteur dolor sit. Quis excepteur nostrud est qui officia incididunt.\r\n", "registered": "2000-05-21T18:28:15 -02:00", "latitude": -0.788656, "longitude": -61.091854, "catalog": [ { "label": "Books", "list": [ { "label": "irure", "list": [ { "label": "aute duis", "list": [ { "label": "consectetur Lorem esse", "author": "Donna Cooke", "rating": 5, "published": "2007-07-06T18:01:10 -03:00" }, { "label": "anim aliqua ipsum", "author": "Kinney Buckley", "rating": 4, "published": "1989-01-04T09:35:54 -02:00" }, { "label": "sint laboris ut", "author": "Elva Dudley", "rating": 7, "published": "1996-06-19T12:20:24 -03:00" } ] }, { "label": "cillum commodo", "list": [ { "label": "do proident irure", "author": "Jefferson Burke", "rating": 8, "published": "2008-12-11T10:58:23 -02:00" }, { "label": "anim laboris dolor", "author": "Meyers Pitts", "rating": 9, "published": "1988-08-20T15:38:06 -03:00" }, { "label": "ea consectetur aliqua", "author": "Pennington Lawson", "rating": 2, "published": "2001-10-29T10:11:23 -02:00" } ] }, { "label": "cupidatat aute", "list": [ { "label": "deserunt consequat amet", "author": "Garrett Hickman", "rating": 2, "published": "1994-10-16T11:53:25 -02:00" }, { "label": "ut labore minim", "author": "Bowen Brown", "rating": 2, "published": "2011-03-17T18:35:15 -02:00" }, { "label": "non tempor voluptate", "author": "Henderson Drake", "rating": 4, "published": "1995-03-04T12:33:49 -02:00" } ] } ] } ] } ], "tags": [ "sit", "do", "commodo", "ad", "ex", "ad", "ex" ], "friends": [ { "id": 0, "name": "Olivia Rutledge" }, { "id": 1, "name": "Lloyd Luna" }, { "id": 2, "name": "Williams Love" } ], "customField": "Hello, Mia Baldwin! You have 5 unread messages." }, { "id": 1, "guid": "a5f0765e-cf6b-45c7-8d04-3759f4b03e8d", "isActive": false, "balance": "$1,097.00", "picture": "http://placehold.it/32x32", "age": 21, "name": "Cote Gonzales", "gender": "male", "company": "Repetwire", "email": "cotegonzales@repetwire.com", "phone": "+1 (835) 566-3335", "address": "398 Boerum Place, Glenshaw, Illinois, 1709", "about": "Mollit laborum velit incididunt sit laboris labore cillum ullamco dolor ex laboris amet. Proident dolor adipisicing ipsum elit aliquip amet aliqua occaecat esse magna labore cillum. Elit elit adipisicing dolor duis quis id eu consectetur sit sint ut occaecat ipsum. Tempor consectetur dolore nisi minim irure culpa eiusmod voluptate eiusmod nisi. Ullamco cupidatat in sint ad labore voluptate laborum. Deserunt officia deserunt laboris consequat ullamco labore eiusmod adipisicing dolore velit nostrud commodo elit dolore. Anim enim nulla laborum aute nulla laborum officia ut cupidatat adipisicing enim ullamco.\r\n", "registered": "2012-04-28T15:16:28 -03:00", "latitude": 89.999808, "longitude": 172.623361, "catalog": [ { "label": "Books", "list": [ { "label": "qui", "list": [ { "label": "ex in", "list": [ { "label": "amet nisi non", "author": "Holloway Dominguez", "rating": 2, "published": "2008-04-22T04:48:37 -03:00" }, { "label": "exercitation ad labore", "author": "Melissa Lambert", "rating": 8, "published": "1988-12-12T19:12:52 -02:00" }, { "label": "aliqua amet aute", "author": "Graciela Bonner", "rating": 4, "published": "1996-02-26T22:33:28 -02:00" } ] }, { "label": "nisi culpa", "list": [ { "label": "laboris mollit officia", "author": "Rivera Hoffman", "rating": 8, "published": "2004-04-18T10:16:30 -03:00" }, { "label": "elit consequat id", "author": "Norman Flowers", "rating": 7, "published": "2014-02-11T04:30:29 -02:00" }, { "label": "excepteur sit Lorem", "author": "Susan Pearson", "rating": 10, "published": "2004-12-09T09:10:12 -02:00" } ] }, { "label": "consequat magna", "list": [ { "label": "incididunt ullamco consequat", "author": "Kent Hunter", "rating": 5, "published": "2012-01-01T10:47:48 -02:00" }, { "label": "sint esse nulla", "author": "Guy Randall", "rating": 6, "published": "1997-10-23T11:25:32 -03:00" }, { "label": "quis deserunt aliquip", "author": "Frye Miller", "rating": 3, "published": "2000-04-07T11:03:23 -02:00" } ] } ] } ] } ], "tags": [ "deserunt", "eu", "eiusmod", "excepteur", "duis", "adipisicing", "pariatur" ], "friends": [ { "id": 0, "name": "Holt Bauer" }, { "id": 1, "name": "Felicia Wilkinson" }, { "id": 2, "name": "Flossie Jenkins" } ], "customField": "Hello, Cote Gonzales! You have 10 unread messages." } ]', true); echo wddx_serialize_value($list);
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function wddx_serialize_value() in /in/oHqJV:252 Stack trace: #0 {main} thrown in /in/oHqJV on line 252
Process exited with code 255.
Output for 5.2.0 - 5.3.29, hhvm-3.10.0 - 3.12.0
<wddxPacket version='1.0'><header/><data><array length='2'><struct><var name='id'><number>0</number></var><var name='guid'><string>05f08142-6ac5-4bd2-9cab-ce88f6be072b</string></var><var name='isActive'><boolean value='false'/></var><var name='balance'><string>$1,454.00</string></var><var name='picture'><string>http://placehold.it/32x32</string></var><var name='age'><number>31</number></var><var name='name'><string>Mia Baldwin</string></var><var name='gender'><string>female</string></var><var name='company'><string>Quantasis</string></var><var name='email'><string>miabaldwin@quantasis.com</string></var><var name='phone'><string>+1 (908) 416-3546</string></var><var name='address'><string>756 Montana Place, Wedgewood, North Carolina, 9002</string></var><var name='about'><string>Irure aliqua adipisicing deserunt laboris est. Et exercitation laboris voluptate reprehenderit ad irure veniam consectetur commodo nulla. Ad do laboris voluptate sunt consectetur sit magna esse minim sit do. Adipisicing laboris pariatur sint duis consectetur aliqua nostrud irure qui irure adipisicing excepteur nulla nostrud. Ipsum do est nostrud Lorem consectetur ullamco dolore nostrud excepteur dolor sit. Quis excepteur nostrud est qui officia incididunt. </string></var><var name='registered'><string>2000-05-21T18:28:15 -02:00</string></var><var name='latitude'><number>-0.788656</number></var><var name='longitude'><number>-61.091854</number></var><var name='catalog'><array length='1'><struct><var name='label'><string>Books</string></var><var name='list'><array length='1'><struct><var name='label'><string>irure</string></var><var name='list'><array length='3'><struct><var name='label'><string>aute duis</string></var><var name='list'><array length='3'><struct><var name='label'><string>consectetur Lorem esse</string></var><var name='author'><string>Donna Cooke</string></var><var name='rating'><number>5</number></var><var name='published'><string>2007-07-06T18:01:10 -03:00</string></var></struct><struct><var name='label'><string>anim aliqua ipsum</string></var><var name='author'><string>Kinney Buckley</string></var><var name='rating'><number>4</number></var><var name='published'><string>1989-01-04T09:35:54 -02:00</string></var></struct><struct><var name='label'><string>sint laboris ut</string></var><var name='author'><string>Elva Dudley</string></var><var name='rating'><number>7</number></var><var name='published'><string>1996-06-19T12:20:24 -03:00</string></var></struct></array></var></struct><struct><var name='label'><string>cillum commodo</string></var><var name='list'><array length='3'><struct><var name='label'><string>do proident irure</string></var><var name='author'><string>Jefferson Burke</string></var><var name='rating'><number>8</number></var><var name='published'><string>2008-12-11T10:58:23 -02:00</string></var></struct><struct><var name='label'><string>anim laboris dolor</string></var><var name='author'><string>Meyers Pitts</string></var><var name='rating'><number>9</number></var><var name='published'><string>1988-08-20T15:38:06 -03:00</string></var></struct><struct><var name='label'><string>ea consectetur aliqua</string></var><var name='author'><string>Pennington Lawson</string></var><var name='rating'><number>2</number></var><var name='published'><string>2001-10-29T10:11:23 -02:00</string></var></struct></array></var></struct><struct><var name='label'><string>cupidatat aute</string></var><var name='list'><array length='3'><struct><var name='label'><string>deserunt consequat amet</string></var><var name='author'><string>Garrett Hickman</string></var><var name='rating'><number>2</number></var><var name='published'><string>1994-10-16T11:53:25 -02:00</string></var></struct><struct><var name='label'><string>ut labore minim</string></var><var name='author'><string>Bowen Brown</string></var><var name='rating'><number>2</number></var><var name='published'><string>2011-03-17T18:35:15 -02:00</string></var></struct><struct><var name='label'><string>non tempor voluptate</string></var><var name='author'><string>Henderson Drake</string></var><var name='rating'><number>4</number></var><var name='published'><string>1995-03-04T12:33:49 -02:00</string></var></struct></array></var></struct></array></var></struct></array></var></struct></array></var><var name='tags'><array length='7'><string>sit</string><string>do</string><string>commodo</string><string>ad</string><string>ex</string><string>ad</string><string>ex</string></array></var><var name='friends'><array length='3'><struct><var name='id'><number>0</number></var><var name='name'><string>Olivia Rutledge</string></var></struct><struct><var name='id'><number>1</number></var><var name='name'><string>Lloyd Luna</string></var></struct><struct><var name='id'><number>2</number></var><var name='name'><string>Williams Love</string></var></struct></array></var><var name='customField'><string>Hello, Mia Baldwin! You have 5 unread messages.</string></var></struct><struct><var name='id'><number>1</number></var><var name='guid'><string>a5f0765e-cf6b-45c7-8d04-3759f4b03e8d</string></var><var name='isActive'><boolean value='false'/></var><var name='balance'><string>$1,097.00</string></var><var name='picture'><string>http://placehold.it/32x32</string></var><var name='age'><number>21</number></var><var name='name'><string>Cote Gonzales</string></var><var name='gender'><string>male</string></var><var name='company'><string>Repetwire</string></var><var name='email'><string>cotegonzales@repetwire.com</string></var><var name='phone'><string>+1 (835) 566-3335</string></var><var name='address'><string>398 Boerum Place, Glenshaw, Illinois, 1709</string></var><var name='about'><string>Mollit laborum velit incididunt sit laboris labore cillum ullamco dolor ex laboris amet. Proident dolor adipisicing ipsum elit aliquip amet aliqua occaecat esse magna labore cillum. Elit elit adipisicing dolor duis quis id eu consectetur sit sint ut occaecat ipsum. Tempor consectetur dolore nisi minim irure culpa eiusmod voluptate eiusmod nisi. Ullamco cupidatat in sint ad labore voluptate laborum. Deserunt officia deserunt laboris consequat ullamco labore eiusmod adipisicing dolore velit nostrud commodo elit dolore. Anim enim nulla laborum aute nulla laborum officia ut cupidatat adipisicing enim ullamco. </string></var><var name='registered'><string>2012-04-28T15:16:28 -03:00</string></var><var name='latitude'><number>89.999808</number></var><var name='longitude'><number>172.623361</number></var><var name='catalog'><array length='1'><struct><var name='label'><string>Books</string></var><var name='list'><array length='1'><struct><var name='label'><string>qui</string></var><var name='list'><array length='3'><struct><var name='label'><string>ex in</string></var><var name='list'><array length='3'><struct><var name='label'><string>amet nisi non</string></var><var name='author'><string>Holloway Dominguez</string></var><var name='rating'><number>2</number></var><var name='published'><string>2008-04-22T04:48:37 -03:00</string></var></struct><struct><var name='label'><string>exercitation ad labore</string></var><var name='author'><string>Melissa Lambert</string></var><var name='rating'><number>8</number></var><var name='published'><string>1988-12-12T19:12:52 -02:00</string></var></struct><struct><var name='label'><string>aliqua amet aute</string></var><var name='author'><string>Graciela Bonner</string></var><var name='rating'><number>4</number></var><var name='published'><string>1996-02-26T22:33:28 -02:00</string></var></struct></array></var></struct><struct><var name='label'><string>nisi culpa</string></var><var name='list'><array length='3'><struct><var name='label'><string>laboris mollit officia</string></var><var name='author'><string>Rivera Hoffman</string></var><var name='rating'><number>8</number></var><var name='published'><string>2004-04-18T10:16:30 -03:00</string></var></struct><struct><var name='label'><string>elit consequat id</string></var><var name='author'><string>Norman Flowers</string></var><var name='rating'><number>7</number></var><var name='published'><string>2014-02-11T04:30:29 -02:00</string></var></struct><struct><var name='label'><string>excepteur sit Lorem</string></var><var name='author'><string>Susan Pearson</string></var><var name='rating'><number>10</number></var><var name='published'><string>2004-12-09T09:10:12 -02:00</string></var></struct></array></var></struct><struct><var name='label'><string>consequat magna</string></var><var name='list'><array length='3'><struct><var name='label'><string>incididunt ullamco consequat</string></var><var name='author'><string>Kent Hunter</string></var><var name='rating'><number>5</number></var><var name='published'><string>2012-01-01T10:47:48 -02:00</string></var></struct><struct><var name='label'><string>sint esse nulla</string></var><var name='author'><string>Guy Randall</string></var><var name='rating'><number>6</number></var><var name='published'><string>1997-10-23T11:25:32 -03:00</string></var></struct><struct><var name='label'><string>quis deserunt aliquip</string></var><var name='author'><string>Frye Miller</string></var><var name='rating'><number>3</number></var><var name='published'><string>2000-04-07T11:03:23 -02:00</string></var></struct></array></var></struct></array></var></struct></array></var></struct></array></var><var name='tags'><array length='7'><string>deserunt</string><string>eu</string><string>eiusmod</string><string>excepteur</string><string>duis</string><string>adipisicing</string><string>pariatur</string></array></var><var name='friends'><array length='3'><struct><var name='id'><number>0</number></var><var name='name'><string>Holt Bauer</string></var></struct><struct><var name='id'><number>1</number></var><var name='name'><string>Felicia Wilkinson</string></var></struct><struct><var name='id'><number>2</number></var><var name='name'><string>Flossie Jenkins</string></var></struct></array></var><var name='customField'><string>Hello, Cote Gonzales! You have 10 unread messages.</string></var></struct></array></data></wddxPacket>
Output for 5.4.0 - 5.6.28
Fatal error: Call to undefined function wddx_serialize_value() in /in/oHqJV on line 252
Process exited with code 255.
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function json_decode() in /in/oHqJV on line 2
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: json_decode() in /in/oHqJV on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: json_decode() in /in/oHqJV on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: json_decode() in /in/oHqJV on line 2