<?php
$a = array('123' => '123'); $o1 = (object)$a;
$o2 = new stdClass;
$o2->{'123'} = '123'; // setting property is OK
echo "123 go: ".$o1->{'123'}."\n"; // error!
echo "123 go: ".$o2->{'123'}."\n"; // works... WTF?
PD9waHAKCiAgICAkYSA9IGFycmF5KCcxMjMnID0+ICcxMjMnKTsKICAgICRvMSA9IChvYmplY3QpJGE7CiAgICAkbzIgPSBuZXcgc3RkQ2xhc3M7CiAgICAkbzItPnsnMTIzJ30gPSAnMTIzJzsgLy8gc2V0dGluZyBwcm9wZXJ0eSBpcyBPSwoKICAgIGVjaG8gIjEyMyBnbzogIi4kbzEtPnsnMTIzJ30uIlxuIjsgLy8gZXJyb3IhCiAgICBlY2hvICIxMjMgZ286ICIuJG8yLT57JzEyMyd9LiJcbiI7IC8vIHdvcmtzLi4uIFdURj8K