3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class test{ function showMess() { echo 'this is a test'; } } $t = test; //var_dump($t); $t = new test; //var_dump($t,$t->showMess); var_dump($t->showMess()); var_dump('have a nice day');
Output for 4.3.0 - 7.1.0
Notice: Use of undefined constant test - assumed 'test' in /in/b1qBJ on line 8 this is a testNULL string(15) "have a nice day"