3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php try { $go = "Test"; $go->go(); } catch (Exception $e) { echo "Exception: " . $e->getMessage(); } catch (Error $error) { echo "Error: " . $error->getMessage(); }
based on qJAJ1
Output for 7.0.0 - 7.2.0
Error: Call to a member function go() on string
Output for 5.6.8 - 5.6.28
Fatal error: Call to a member function go() on string in /in/iUIeg on line 5
Process exited with code 255.
Output for 5.3.21 - 5.5.35
Fatal error: Call to a member function go() on a non-object in /in/iUIeg on line 5
Process exited with code 255.