3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php interface IC {} class C implements IC { public function go() { return true; } } class CC implements IC { public function stop() { return false; } } $c = new CC; //$c = null; if ( $c instanceof IC === false || $c->go() === false ) { echo 'Rurro'; }
based on Vu9Xe
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined method CC::go() in /in/fn2PE:27 Stack trace: #0 {main} thrown in /in/fn2PE on line 27
Process exited with code 255.
Output for 5.3.19 - 5.6.28
Fatal error: Call to undefined method CC::go() in /in/fn2PE on line 27
Process exited with code 255.