3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class _google{}function __autoload($c){eval("class _$c{} class $c{}");echo strlen($c);}function g($x){class_exists($x);} g('bing'); g('bing'); g('google');
based on ZWI4v
Output for 7.2.0
Deprecated: __autoload() is deprecated, use spl_autoload_register() instead in /in/GFUg4 on line 3 4 Fatal error: Cannot declare class _google, because the name is already in use in /in/GFUg4(3) : eval()'d code on line 1
Process exited with code 255.
Output for 7.0.0 - 7.1.10
4 Fatal error: Cannot declare class _google, because the name is already in use in /in/GFUg4(3) : eval()'d code on line 1
Process exited with code 255.
Output for 5.3.18 - 5.6.28
4 Fatal error: Cannot redeclare class _google in /in/GFUg4(3) : eval()'d code on line 1
Process exited with code 255.