3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(strtr("a", array("a" => "b", "c" => new stdclass)));
Output for 4.3.0 - 5.4.11, 7.0.0 - 7.2.0
string(1) "b"
Output for 5.4.12 - 5.6.28
Catchable fatal error: Object of class stdClass could not be converted to string in /in/0fFcj on line 2
Process exited with code 255.