3v4l.org

run code in 300+ PHP versions simultaneously
<?php class SoapClientImpl extends SoapClient { private static final $WSDL = "http://ideone.com/api/1/service.wsdl"; public function __construct() { try { parent::__construct(self::$WSDL); } catch(Exception $e) { var_dump($e); } } } $client = new SoapClientImpl(); $languages = $client->getLanguages('Achrome', 'webinstitute'); var_dump($languages);
Output for 5.3.0 - 5.3.22, 5.3.24, 5.4.0 - 5.4.12, 5.4.14
Fatal error: Cannot declare property SoapClientImpl::$WSDL final, the final modifier is allowed only for methods and classes in kPSmC on line 5
Process exited with code 255.
Output for 5.3.23, 5.4.13
Fatal error: Cannot declare property SoapClientImpl::$WSDL final, the final modifier is allowed only for methods and classes in /in/KOZpF on line 5
Process exited with code 255.

preferences:
172.31 ms | 1395 KiB | 47 Q