3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php phpinfo(); exit; class Foo { public function __toString(){ return (string)$this; } } $foo = new Foo; (string)$foo;
Output for 5.3.0 - 7.1.10
Warning: phpinfo() has been disabled for security reasons in /in/kvfAl on line 2