3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr=Array ( 0 => Array ( Title => "La science des rêves", Year => "2006", Director => Array ( "Name" => "Michel Gondry", "BirthYear" => "1963", "BirthPlace" => "Versailles, Yvelines, France" ) ), 1 => Array ( "Title" => "Arizona Dream", "Year" => "1992", "Director" => Array ( "Name" => "Emir Kusturica", "BirthYear" => "1954", "BirthPlace" => "Sarajevo, Bosnia and Herzegovina, Yugoslavia" ) ) ); $ck=Array ( 0 => Title, 1 => Director.Name, 2 => Director.BirthYear ); print_r($arr);
Output for 7.0.0 - 7.1.0
Notice: Use of undefined constant Title - assumed 'Title' in /in/a59C1 on line 7 Notice: Use of undefined constant Year - assumed 'Year' in /in/a59C1 on line 8 Notice: Use of undefined constant Director - assumed 'Director' in /in/a59C1 on line 9 Notice: Use of undefined constant Title - assumed 'Title' in /in/a59C1 on line 35 Notice: Use of undefined constant Director - assumed 'Director' in /in/a59C1 on line 36 Notice: Use of undefined constant Name - assumed 'Name' in /in/a59C1 on line 36 Notice: Use of undefined constant Director - assumed 'Director' in /in/a59C1 on line 37 Notice: Use of undefined constant BirthYear - assumed 'BirthYear' in /in/a59C1 on line 37 Array ( [0] => Array ( [Title] => La science des rêves [Year] => 2006 [Director] => Array ( [Name] => Michel Gondry [BirthYear] => 1963 [BirthPlace] => Versailles, Yvelines, France ) ) [1] => Array ( [Title] => Arizona Dream [Year] => 1992 [Director] => Array ( [Name] => Emir Kusturica [BirthYear] => 1954 [BirthPlace] => Sarajevo, Bosnia and Herzegovina, Yugoslavia ) ) )
Output for 4.3.0 - 5.6.28
Notice: Use of undefined constant Title - assumed 'Title' in /in/a59C1 on line 7 Notice: Use of undefined constant Year - assumed 'Year' in /in/a59C1 on line 8 Notice: Use of undefined constant Director - assumed 'Director' in /in/a59C1 on line 9 Notice: Use of undefined constant Title - assumed 'Title' in /in/a59C1 on line 35 Notice: Use of undefined constant Director - assumed 'Director' in /in/a59C1 on line 36 Notice: Use of undefined constant Name - assumed 'Name' in /in/a59C1 on line 36 Notice: Use of undefined constant Director - assumed 'Director' in /in/a59C1 on line 37 Notice: Use of undefined constant BirthYear - assumed 'BirthYear' in /in/a59C1 on line 38 Array ( [0] => Array ( [Title] => La science des rêves [Year] => 2006 [Director] => Array ( [Name] => Michel Gondry [BirthYear] => 1963 [BirthPlace] => Versailles, Yvelines, France ) ) [1] => Array ( [Title] => Arizona Dream [Year] => 1992 [Director] => Array ( [Name] => Emir Kusturica [BirthYear] => 1954 [BirthPlace] => Sarajevo, Bosnia and Herzegovina, Yugoslavia ) ) )