3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [1]; $object = new stdclass; $object->foo = 1; var_dump(++$array[0], ++$object->foo, --$array[0], --$object->foo);

preferences:
44.75 ms | 402 KiB | 5 Q