3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class test { public static $a = 'no'; public static function a() { echo self::$a; } function __destruct() { echo 'b'; } } $a = array('test','a'); $a(); "phpinfo"();
based on dReGj
Output for 7.0.0 - 7.2.0
no Warning: phpinfo() has been disabled for security reasons in /in/aOUNJ on line 15
Output for 5.4.0 - 5.6.28
Parse error: syntax error, unexpected '(' in /in/aOUNJ on line 15
Process exited with code 255.