3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // Source: https://bugs.php.net/bug.php?id=62181 var_dump(wddx_serialize_value(array("foo"=>1))); var_dump(wddx_serialize_value(array("foo"=>1,"bar"=>"barstr")));
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function wddx_serialize_value() in /in/46oYG:4 Stack trace: #0 {main} thrown in /in/46oYG on line 4
Process exited with code 255.
Output for 4.3.0 - 4.4.2, 4.4.5 - 5.3.29, hhvm-3.10.0 - 3.12.0
string(118) "<wddxPacket version='1.0'><header/><data><struct><var name='foo'><number>1</number></var></struct></data></wddxPacket>" string(163) "<wddxPacket version='1.0'><header/><data><struct><var name='foo'><number>1</number></var><var name='bar'><string>barstr</string></var></struct></data></wddxPacket>"
Output for 5.4.0 - 5.6.28
Fatal error: Call to undefined function wddx_serialize_value() in /in/46oYG on line 4
Process exited with code 255.
Output for 4.4.3 - 4.4.4
string(87) "<wddxPacket version='1.0'><header/><data><struct><va</var></struct></data></wddxPacket>" string(119) "<wddxPacket version='1.0'><header/><data><struct><va</var><va<string>barstr</string></var></struct></data></wddxPacket>"