3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $bar = 'barValue'; } $foo = new Foo(); $arrayFoo = (array) $foo; var_dump($arrayFoo);

preferences:
41.58 ms | 404 KiB | 5 Q