3v4l.org

run code in 300+ PHP versions simultaneously
<?php $person = array( 'name' => 'John', 'age' => 24, 'locations' => Array ( 'Greenwhich' => Array ( 'New Eltham', 'Central Greenwhich' ), 'Feltham' ) ); echo $person['locations']['Greenwhich'][0]; echo print_r($person);

preferences:
38.81 ms | 402 KiB | 5 Q