3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $uid= "326"; $fname = "Firstname"; $lname = "Surname"; $gender = "M"; $email = "maikel@gmail.com"; $xml = "<xmlrequest>"; $xml .= "<username>Username</username>"; $xml .= "<token>Token</token>"; $xml .= "<requesttype>Users</requesttype>"; $xml .= "<requestmethod>CreateNewUserAccount</requestmethod>"; $xml .= "<details>"; $xml .= "<userinfo>"; $xml .= "<UserID>$uid</UserID>"; $xml .= "<Name>$fname</Name>"; $xml .= "<Surname>$lname</Surname>"; $xml .= "<Gender>$gender</Gender>"; $xml .= "<Email>$email</Email>"; $xml .= "</userinfo>"; $xml .= "<deviceinfo>"; $xml .= "<version></version>"; $xml .= "</deviceinfo>"; $xml .= "</details>"; $xml .= "</xmlrequest>"; echo "<pre>"; print_r($xml); ?>
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
<pre><xmlrequest><username>Username</username><token>Token</token><requesttype>Users</requesttype><requestmethod>CreateNewUserAccount</requestmethod><details><userinfo><UserID>326</UserID><Name>Firstname</Name><Surname>Surname</Surname><Gender>M</Gender><Email>maikel@gmail.com</Email></userinfo><deviceinfo><version></version></deviceinfo></details></xmlrequest>