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 - 7.2.11
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.23
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 hhvm-3.17.3, hhvm-3.22.0
Notice: Undefined variable: nexmo in /in/TBbjv on line -1 Notice: Cannot access property on non-object in /in/TBbjv on line -1 Notice: Cannot access property on non-object in /in/TBbjv on line -1 Call to a member function country() on a non-object (null)
Output for hhvm-3.10.1 - 3.15.4, hhvm-3.18.4 - 3.21.3
Notice: Undefined variable: nexmo in /in/TBbjv on line 5 Notice: Cannot access property on non-object in /in/TBbjv on line 5 Notice: Cannot access property on non-object in /in/TBbjv on line 5 Call to a member function country() on a non-object (null)
Output for 5.6.0 - 5.6.38
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.38
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.