3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php error_reporting(-1); class A { function B() { die('aa'); } static function C() { var_dump($this); } function __destruct() { echo '<br />Well, you have done!!<br />'; die('xx'); } } A::newinstance();
based on j5Gi2
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined method A::newinstance() in /in/nHeuT:17 Stack trace: #0 {main} thrown in /in/nHeuT on line 17
Process exited with code 255.
Output for 5.3.20 - 5.6.28
Fatal error: Call to undefined method A::newinstance() in /in/nHeuT on line 17
Process exited with code 255.