3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Test; class trick { function doit() { print_r(__CLASS__ . "\n"); } function doitagain() { print_r(get_class($this) . "\n"); } } $obj=new trick(); $obj->doit(); $obj->doitagain();

preferences:
57.18 ms | 402 KiB | 5 Q