3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Hoge { private $val = 1; public function getVal() { return $this->val; } } $h = new \ReflactionClass('Hoge'); echo $h->isAbstract() ? "true" : "false" , "\n";
based on Leaf7
Output for 7.0.0 - 7.2.6
Fatal error: Uncaught Error: Class 'ReflactionClass' not found in /in/WQIB7:12 Stack trace: #0 {main} thrown in /in/WQIB7 on line 12
Process exited with code 255.
Output for 5.5.0 - 5.6.28
Fatal error: Class 'ReflactionClass' not found in /in/WQIB7 on line 12
Process exited with code 255.