3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $country = 'US'; try { $response = $nexmo->account->pricing->country($country); } catch (Exception $e) { die($e->getMessage()); } echo 'Price is ' . $response->price();
Output for 7.2.0
Notice: Undefined variable: nexmo in /in/TBbjv on line 5 Notice: Trying to get property 'account' of non-object in /in/TBbjv on line 5 Notice: Trying to get property 'pricing' of non-object in /in/TBbjv on line 5 Fatal error: Uncaught Error: Call to a member function country() on null in /in/TBbjv:5 Stack trace: #0 {main} thrown in /in/TBbjv on line 5
Process exited with code 255.
Output for 7.0.0 - 7.1.10
Notice: Undefined variable: nexmo in /in/TBbjv on line 5 Notice: Trying to get property of non-object in /in/TBbjv on line 5 Notice: Trying to get property of non-object in /in/TBbjv on line 5 Fatal error: Uncaught Error: Call to a member function country() on null in /in/TBbjv:5 Stack trace: #0 {main} thrown in /in/TBbjv on line 5
Process exited with code 255.
Output for 5.6.8 - 5.6.28
Notice: Undefined variable: nexmo in /in/TBbjv on line 5 Notice: Trying to get property of non-object in /in/TBbjv on line 5 Notice: Trying to get property of non-object in /in/TBbjv on line 5 Fatal error: Call to a member function country() on null in /in/TBbjv on line 5
Process exited with code 255.
Output for 5.3.18 - 5.5.35
Notice: Undefined variable: nexmo in /in/TBbjv on line 5 Notice: Trying to get property of non-object in /in/TBbjv on line 5 Notice: Trying to get property of non-object in /in/TBbjv on line 5 Fatal error: Call to a member function country() on a non-object in /in/TBbjv on line 5
Process exited with code 255.