3v4l.org

run code in 500+ PHP versions simultaneously
<?php // An indexed array of programming languages $languages = ['PHP', 'JavaScript', 'Python', 'Go']; // Accessing elements by their index echo "The second language is: " . $languages[1] . PHP_EOL; // Index 1 is the second element // To see the whole array structure, use print_r() or var_dump() print_r($languages);

preferences:
28.06 ms | 483 KiB | 6 Q