3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $count = 0; public function bar() { if (false) { return; } $this->count++; var_dump($this->count); } } class TotallyUnrelated { public function go() { Foo::bar(); } } (new TotallyUnrelated)->go();

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
232.53 ms | 2638 KiB | 11 Q