3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = array( new stdClass, "hello", 3, array("baz", "bay"), "world" ); foreach ($test as $case) { try { $value = (string) $case; print $value; } catch (Exception $e) { print "<pre>"; var_dump($e); } }

preferences:
44.46 ms | 402 KiB | 5 Q