3v4l.org

run code in 300+ PHP versions simultaneously
<?php $int = 42; $float = 42.1234; $bool = true; $resource = fopen('php://stdout', 'w'); $null = null; $string = 'Foo bar'; $object = new \stdClass(); var_dump($int[1]); var_dump($float[1]); var_dump($bool[1]); var_dump($resource[1]); var_dump($null[1]); var_dump($string[1]); var_dump($object[1]);

preferences:
60.38 ms | 405 KiB | 5 Q