3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php abstract class first { protected $someArray = array(); } class second extends first { protected $someArray = array(); protected $someValue = null; public function __construct($someValue) { $this->someValue = $someValue; } } $objFirst = new second('123'); $objSecond = new second('321'); echo $objFirst == $objSecond; print_r($objFirst); echo $objFirst == $objSecond
Output for 5.4.0 - 5.4.23
Parse error: syntax error, unexpected end of file, expecting ',' or ';' in /in/5rsKY on line 34
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected $end, expecting ',' or ';' in /in/5rsKY on line 34
Process exited with code 255.