3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = ['0' => 'value']; $keys = array_keys($a); echo gettype($keys[0]);

preferences:
62.76 ms | 402 KiB | 5 Q