3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php Class className { public $id = array(); // this a array (1,2,3,4,5...) public $userId=array("1","2","3","4","5"); public function Delete($id) { $thiS->id = $id; $thiS->db-exec("delete form user where id=".$this->id); } $object=new className(); ?>
Output for 5.4.0 - 5.5.4
Parse error: syntax error, unexpected '$object' (T_VARIABLE), expecting function (T_FUNCTION) in /in/MAf4S on line 16
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION in /in/MAf4S on line 16
Process exited with code 255.