3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php <?php // ** GENERATED by NI_Mysqlpm_Util_ViewClass ** - do not edit /** * Generated view class. View class definition in User§Class * <p/> */ class User { /** * id: int(10) not null auto_increment * * @var int */ public $id; /** * Country of the user. * <p> * country_id: int(10) not null * * @var int */ public $countryId; /** * firstname: varchar(765) * * @var string */ public $firstname; /** * lastname: varchar(765) * * @var string */ public $lastname; /** * Customer number (trigger will generate random on new) * <p> * number: varchar(96) * * @var string */ public $number; /** * ssn: varchar(96) * * @var string */ public $ssn; /** * Set of on/off information * <p> * flags: set('active','super_admin','retail_admin','marketing_admin') = 'active' not null * * @var NI_Set */ public $flags; /** * Associated Navision store * <p> * store_id: int(10) * * @var int */ public $storeId; /** * @return mixed; */ public function getKey() { return $this->id; } /** * @return mixed; */ public function getIndexKey() { return $this->id; } } $user = new User(); $user->id = 1234567; $thisObj = new stdClass(); $user2 = new User(); $user2->id = 1234567; $thisObj->user = $user2; if($user->id != $thisObj->user->id){ echo "Does not work"; } else { echo "works"; }
based on efPqs
Output for 7.0.0 - 7.0.1
Parse error: syntax error, unexpected '<', expecting end of file in /in/UdqDJ on line 3
Process exited with code 255.
Output for 5.3.20 - 5.6.16
Parse error: syntax error, unexpected '<' in /in/UdqDJ on line 3
Process exited with code 255.