@ 2015-12-20T19:17:54Z <?php
class card {
private $rank;
private $suit;
public function __construct($rank, $suit) {
$this->rank = $rank;
$this->suit = $suit;
}
public function clear_table($table) {
}
}
$x = new card(1, 'a');
echo x;
?>
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 8.0.0 - 8.0.30 , 8.1.0 - 8.1.28 , 8.2.0 - 8.2.18 , 8.3.0 - 8.3.6 Fatal error: Uncaught Error: Undefined constant "x" in /in/dA2mQ:18
Stack trace:
#0 {main}
thrown in /in/dA2mQ on line 18
Process exited with code 255 . Output for 7.2.0 - 7.2.33 , 7.3.16 - 7.3.33 , 7.4.0 - 7.4.33 Warning: Use of undefined constant x - assumed 'x' (this will throw an Error in a future version of PHP) in /in/dA2mQ on line 18
x Output for 5.5.0 - 5.5.38 , 5.6.0 - 5.6.28 , 7.0.0 - 7.0.20 , 7.1.0 - 7.1.20 Notice: Use of undefined constant x - assumed 'x' in /in/dA2mQ on line 18
x preferences:dark mode live preview
219.15 ms | 402 KiB | 225 Q