3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $finder = new PrimePalindromeFinder(); print($find->find()); class PrimePalindromeFinder { private $start; private $end; public function __construct($start = 1000, $end = 1) { $this->start = $start; $this->end = $end; } public function find() { return 929; } }
Output for 7.0.5 - 7.2.0
Notice: Undefined variable: find in /in/gvpJ5 on line 4 Fatal error: Uncaught Error: Call to a member function find() on null in /in/gvpJ5:4 Stack trace: #0 {main} thrown in /in/gvpJ5 on line 4
Process exited with code 255.
Output for 7.0.0 - 7.0.4
Notice: Undefined variable: find in /in/gvpJ5 on line 4 Fatal error: Uncaught Error: Call to a member function find() on unknown in /in/gvpJ5:4 Stack trace: #0 {main} thrown in /in/gvpJ5 on line 4
Process exited with code 255.
Output for 5.6.8 - 5.6.28
Notice: Undefined variable: find in /in/gvpJ5 on line 4 Fatal error: Call to a member function find() on null in /in/gvpJ5 on line 4
Process exited with code 255.
Output for 5.3.19 - 5.5.35
Notice: Undefined variable: find in /in/gvpJ5 on line 4 Fatal error: Call to a member function find() on a non-object in /in/gvpJ5 on line 4
Process exited with code 255.