3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(); $key = 'oele'; $arr[$key] = 'boele'; $key[1] = 'X'; print_r($arr); var_dump($key);

preferences:
40.82 ms | 402 KiB | 5 Q