3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 1; $b = 5.5; $c = array('hhh'=>"blue", "orange", "violet"); $d = "colors"; $clvars = array("c", "d"); echo wddx_serialize_vars("a", "b", $clvars);
based on 2uEnm
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function wddx_serialize_vars() in /in/P7mC7:9 Stack trace: #0 {main} thrown in /in/P7mC7 on line 9
Process exited with code 255.
Output for 5.4.2 - 5.6.21
Fatal error: Call to undefined function wddx_serialize_vars() in /in/P7mC7 on line 9
Process exited with code 255.
Output for 5.3.18 - 5.3.29
<wddxPacket version='1.0'><header/><data><struct><var name='a'><number>1</number></var><var name='b'><number>5.5</number></var><var name='c'><struct><var name='hhh'><string>blue</string></var><var name='0'><string>orange</string></var><var name='1'><string>violet</string></var></struct></var><var name='d'><string>colors</string></var></struct></data></wddxPacket>