3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $xml = new stdClass(); $xml->return = new stdClass(); $xml->return->authtoken = 'Test'; print_r($xml->return->authtoken); foreach($xml->return->authtoken as $char){ echo "Char is $char \n"; }
Output for 4.3.0 - 4.3.10, 4.4.0 - 7.2.0
Test Warning: Invalid argument supplied for foreach() in /in/8EfYr on line 6
Output for 4.3.11
Test