3v4l.org

run code in 300+ PHP versions simultaneously
<?php class SoapClientImpl extends SoapClient { private static $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 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
Fatal error: Uncaught Error: Class "SoapClient" not found in /in/3XPDp:3 Stack trace: #0 {main} thrown in /in/3XPDp on line 3
Process exited with code 255.
Output for 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
Fatal error: Uncaught Error: Class 'SoapClient' not found in /in/3XPDp:3 Stack trace: #0 {main} thrown in /in/3XPDp on line 3
Process exited with code 255.
Output for 5.4.0 - 5.4.37, 5.5.0 - 5.5.21, 5.6.0 - 5.6.5, 7.1.25, 7.2.0 - 7.2.33
Fatal error: Class 'SoapClient' not found in /in/3XPDp on line 3
Process exited with code 255.

preferences:
221.62 ms | 402 KiB | 220 Q