3v4l.org

run code in 300+ PHP versions simultaneously
<?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.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.30, 7.4.0 - 7.4.23, 8.0.0 - 8.0.11, 8.1rc1 - rc2
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 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.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.3.1 - 4.3.11, 4.4.0 - 4.4.2, 4.4.5 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29
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 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>"

preferences:
54.21 ms | 463 KiB | 5 Q