3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types = 1); class ArrayWalk { public function withObject() { $object = (object)['foo' => 'bar']; array_walk($object, function ($v) { return '_' . $v; }); } } (new ArrayWalk())->withObject();

preferences:
25.23 ms | 404 KiB | 5 Q