3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Value { public function __toString() { return "3"; } } $a = new Value(); echo $a;
Output for 5.3.19 - 7.2.0
3