3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Nigger { function __construct() { if(is_defined(__METHOD__) { echo __METHOD__; } else { throw new Exception('Const not defined :('); } } } $cottonCollector = new Nigger();
Output for 5.3.0 - 5.4.28
Parse error: syntax error, unexpected '{' in /in/RLf76 on line 6
Process exited with code 255.