3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php # Ловим исключения : try { # Если включено SMS подтверждение операций : if( $oQiwi->isSMSActive() ) { # Debug : echo '<p>У Вас <b style="color: red">включено</b> SMS подтверждение операций.</p>'; } # Иначе : else { # Debug : echo '<p>У Вас <b style="color: green">выключено</b> SMS подтверждение операций.</p>'; } } catch( Exception $e ) { # Debug : echo '<p style="text-align: center; color: red; font-weight: bolder">Вам срочно необходимо сменить пароль от кошелька!</p>'; } ?>
Output for 7.0.5 - 7.2.0
Notice: Undefined variable: oQiwi in /in/24vp7 on line 6 Fatal error: Uncaught Error: Call to a member function isSMSActive() on null in /in/24vp7:6 Stack trace: #0 {main} thrown in /in/24vp7 on line 6
Process exited with code 255.
Output for 7.0.0 - 7.0.4
Notice: Undefined variable: oQiwi in /in/24vp7 on line 6 Fatal error: Uncaught Error: Call to a member function isSMSActive() on unknown in /in/24vp7:6 Stack trace: #0 {main} thrown in /in/24vp7 on line 6
Process exited with code 255.
Output for 5.6.7 - 5.6.28
Notice: Undefined variable: oQiwi in /in/24vp7 on line 6 Fatal error: Call to a member function isSMSActive() on null in /in/24vp7 on line 6
Process exited with code 255.
Output for 5.3.19 - 5.5.35
Notice: Undefined variable: oQiwi in /in/24vp7 on line 6 Fatal error: Call to a member function isSMSActive() on a non-object in /in/24vp7 on line 6
Process exited with code 255.