3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(0); class foo { function bar() { echo "this is " . (is_null($this) ? 'not ' : '') . "null\n"; } } foo::bar(); (new foo)->bar();

preferences:
41.09 ms | 402 KiB | 5 Q