3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = 1; $b = 5.5; $c = array("blue", "orange", "violet"); $d = "colors"; $clvars = array("c", "d"); echo wddx_serialize_vars("a", "b", $clvars);
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function wddx_serialize_vars() in /in/tWhPg:8 Stack trace: #0 {main} thrown in /in/tWhPg on line 8
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
<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'><array length='3'><string>blue</string><string>orange</string><string>violet</string></array></var><var name='d'><string>colors</string></var></struct></data></wddxPacket>
Output for 5.4.0 - 5.6.28
Fatal error: Call to undefined function wddx_serialize_vars() in /in/tWhPg on line 8
Process exited with code 255.
Output for 4.4.3 - 4.4.4
<wddxPacket version='1.0'><header/><data><struct></var><n</var><array length='3'><string>blue</string><string>orange</string><string>violet</string></array></var><string>colors</string></var></struct></data></wddxPacket>