3v4l.org

run code in 300+ PHP versions simultaneously
<?php $index = "stuff string"; $data = 'foo'; $cache_id = 'bar'; $tmparr = new stdClass; $tmparr->name = $cache_id; $tmparr->size = strlen($data); $index[] = $tmparr; var_dump($index);

preferences:
66.62 ms | 404 KiB | 5 Q