3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php include "smsGateway.php"; $smsGateway = new SmsGateway('demo@smsgateway.me', 'password'); $deviceID = 1; $number = '+44771232343'; $message = 'Hello World!'; //Please note options is no required and can be left out $result = $smsGateway->sendMessageToNumber($number, $message, $deviceID, $options); ?>
Output for 7.0.0 - 7.2.0
Warning: include(smsGateway.php): failed to open stream: No such file or directory in /in/19RWJ on line 2 Warning: include(): Failed opening 'smsGateway.php' for inclusion (include_path='.:') in /in/19RWJ on line 2 Fatal error: Uncaught Error: Class 'SmsGateway' not found in /in/19RWJ:3 Stack trace: #0 {main} thrown in /in/19RWJ on line 3
Process exited with code 255.
Output for 5.3.21 - 5.6.28
Warning: include(smsGateway.php): failed to open stream: No such file or directory in /in/19RWJ on line 2 Warning: include(): Failed opening 'smsGateway.php' for inclusion (include_path='.:') in /in/19RWJ on line 2 Fatal error: Class 'SmsGateway' not found in /in/19RWJ on line 3
Process exited with code 255.