3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $list = json_decode('[ { "id": 0, "guid": "37c6fa28-9cf2-4955-bf95-bd2fd122e83c", "isActive": false, "balance": "$2,339.00", "picture": "http://placehold.it/32x32", "age": 27, "name": "Melanie Washington", "gender": "female", "company": "Hydrocom", "email": "melaniewashington@hydrocom.com", "phone": "+1 (921) 414-3458", "address": "699 Dank Court, Coaldale, Louisiana, 4570", "about": "Velit ex ullamco non voluptate adipisicing voluptate ut nulla minim consequat esse commodo. Fugiat est cupidatat non quis mollit commodo ipsum eiusmod laboris. Ex eiusmod labore ex eu nostrud minim magna quis minim non consequat cupidatat.\r\n", "registered": "2002-03-23T17:30:23 -02:00", "latitude": -73.577501, "longitude": -93.995272, "catalog": [ { "label": "Books", "list": [ { "label": "ea", "list": [ { "label": "pariatur anim", "list": [ { "label": "mollit anim ad", "author": "Griffith Patel", "rating": 7, "published": "1993-05-27T13:57:14 -03:00" }, { "label": "velit qui exercitation", "author": "Fernandez Dominguez", "rating": 3, "published": "1998-01-14T23:11:03 -02:00" }, { "label": "velit do est", "author": "Esperanza Simon", "rating": 5, "published": "2012-08-07T02:17:24 -03:00" } ] }, { "label": "ex dolor", "list": [ { "label": "eiusmod id exercitation", "author": "Eliza Mejia", "rating": 9, "published": "2010-12-12T11:53:15 -02:00" }, { "label": "est veniam non", "author": "Melva Burton", "rating": 3, "published": "1997-08-28T14:24:43 -03:00" }, { "label": "do exercitation nostrud", "author": "Janelle Kramer", "rating": 5, "published": "2003-10-22T20:32:02 -03:00" } ] }, { "label": "pariatur exercitation", "list": [ { "label": "sint sint esse", "author": "Whitehead Flynn", "rating": 8, "published": "2003-02-08T23:50:56 -02:00" }, { "label": "in esse tempor", "author": "Slater Ford", "rating": 4, "published": "1996-04-28T14:51:15 -03:00" }, { "label": "elit elit minim", "author": "Casey Jefferson", "rating": 3, "published": "1995-02-04T17:17:01 -02:00" } ] } ] } ] } ], "tags": [ "sint", "enim", "est", "reprehenderit", "cillum", "quis", "occaecat" ], "friends": [ { "id": 0, "name": "Angelia Schultz" }, { "id": 1, "name": "Estrada Pierce" }, { "id": 2, "name": "Deanne Burt" } ], "customField": "Hello, Melanie Washington! 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/FXcDj:129 Stack trace: #0 {main} thrown in /in/FXcDj on line 129
Process exited with code 255.
Output for 5.4.0 - 5.6.28
Fatal error: Call to undefined function wddx_serialize_value() in /in/FXcDj on line 129
Process exited with code 255.
Output for 5.2.0 - 5.3.29
<wddxPacket version='1.0'><header/><data><array length='1'><struct><var name='id'><number>0</number></var><var name='guid'><string>37c6fa28-9cf2-4955-bf95-bd2fd122e83c</string></var><var name='isActive'><boolean value='false'/></var><var name='balance'><string>$2,339.00</string></var><var name='picture'><string>http://placehold.it/32x32</string></var><var name='age'><number>27</number></var><var name='name'><string>Melanie Washington</string></var><var name='gender'><string>female</string></var><var name='company'><string>Hydrocom</string></var><var name='email'><string>melaniewashington@hydrocom.com</string></var><var name='phone'><string>+1 (921) 414-3458</string></var><var name='address'><string>699 Dank Court, Coaldale, Louisiana, 4570</string></var><var name='about'><string>Velit ex ullamco non voluptate adipisicing voluptate ut nulla minim consequat esse commodo. Fugiat est cupidatat non quis mollit commodo ipsum eiusmod laboris. Ex eiusmod labore ex eu nostrud minim magna quis minim non consequat cupidatat. </string></var><var name='registered'><string>2002-03-23T17:30:23 -02:00</string></var><var name='latitude'><number>-73.577501</number></var><var name='longitude'><number>-93.995272</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>ea</string></var><var name='list'><array length='3'><struct><var name='label'><string>pariatur anim</string></var><var name='list'><array length='3'><struct><var name='label'><string>mollit anim ad</string></var><var name='author'><string>Griffith Patel</string></var><var name='rating'><number>7</number></var><var name='published'><string>1993-05-27T13:57:14 -03:00</string></var></struct><struct><var name='label'><string>velit qui exercitation</string></var><var name='author'><string>Fernandez Dominguez</string></var><var name='rating'><number>3</number></var><var name='published'><string>1998-01-14T23:11:03 -02:00</string></var></struct><struct><var name='label'><string>velit do est</string></var><var name='author'><string>Esperanza Simon</string></var><var name='rating'><number>5</number></var><var name='published'><string>2012-08-07T02:17:24 -03:00</string></var></struct></array></var></struct><struct><var name='label'><string>ex dolor</string></var><var name='list'><array length='3'><struct><var name='label'><string>eiusmod id exercitation</string></var><var name='author'><string>Eliza Mejia</string></var><var name='rating'><number>9</number></var><var name='published'><string>2010-12-12T11:53:15 -02:00</string></var></struct><struct><var name='label'><string>est veniam non</string></var><var name='author'><string>Melva Burton</string></var><var name='rating'><number>3</number></var><var name='published'><string>1997-08-28T14:24:43 -03:00</string></var></struct><struct><var name='label'><string>do exercitation nostrud</string></var><var name='author'><string>Janelle Kramer</string></var><var name='rating'><number>5</number></var><var name='published'><string>2003-10-22T20:32:02 -03:00</string></var></struct></array></var></struct><struct><var name='label'><string>pariatur exercitation</string></var><var name='list'><array length='3'><struct><var name='label'><string>sint sint esse</string></var><var name='author'><string>Whitehead Flynn</string></var><var name='rating'><number>8</number></var><var name='published'><string>2003-02-08T23:50:56 -02:00</string></var></struct><struct><var name='label'><string>in esse tempor</string></var><var name='author'><string>Slater Ford</string></var><var name='rating'><number>4</number></var><var name='published'><string>1996-04-28T14:51:15 -03:00</string></var></struct><struct><var name='label'><string>elit elit minim</string></var><var name='author'><string>Casey Jefferson</string></var><var name='rating'><number>3</number></var><var name='published'><string>1995-02-04T17:17:01 -02:00</string></var></struct></array></var></struct></array></var></struct></array></var></struct></array></var><var name='tags'><array length='7'><string>sint</string><string>enim</string><string>est</string><string>reprehenderit</string><string>cillum</string><string>quis</string><string>occaecat</string></array></var><var name='friends'><array length='3'><struct><var name='id'><number>0</number></var><var name='name'><string>Angelia Schultz</string></var></struct><struct><var name='id'><number>1</number></var><var name='name'><string>Estrada Pierce</string></var></struct><struct><var name='id'><number>2</number></var><var name='name'><string>Deanne Burt</string></var></struct></array></var><var name='customField'><string>Hello, Melanie Washington! You have 10 unread messages.</string></var></struct></array></data></wddxPacket>
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function json_decode() in /in/FXcDj 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/FXcDj 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/FXcDj 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/FXcDj on line 2