3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(strtr("a", array("a" => "b", "c" => new stdclass)));
Output for 4.3.0 - 5.4.11, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.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.