fork download
  1. <?php
  2.  
  3. class City{}
  4.  
  5. $city = new City();
  6.  
  7. echo $city;
Runtime error #stdin #stdout #stderr 0.01s 20520KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
PHP Catchable fatal error:  Object of class City could not be converted to string in /home/rsZP5a/prog.php on line 7