3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = [ ["question" => "What's your name?", "question_key" => "key1"], ["question" => "What's your job?", "question_key" => "key2"], ["question" => "Where do you live?", "question_key" => "key3"], ["question" => "What's your name?", "question_key" => "key1"], ["question" => "What's your job?", "question_key" => "key2"], ["question" => "Where do you live?", "question_key" => "key3"], ["question" => "What's your name?", "question_key" => "key1"], ["question" => "What's your job?", "question_key" => "key2"], ["question" => "Where do you live?", "question_key" => "key3"] ]; print_r($arr);
based on NJg2hQ
Output for 7.1.25 - 7.3.5
Array ( [0] => Array ( [question] => What's your name? [question_key] => key1 ) [1] => Array ( [question] => What's your job? [question_key] => key2 ) [2] => Array ( [question] => Where do you live? [question_key] => key3 ) [3] => Array ( [question] => What's your name? [question_key] => key1 ) [4] => Array ( [question] => What's your job? [question_key] => key2 ) [5] => Array ( [question] => Where do you live? [question_key] => key3 ) [6] => Array ( [question] => What's your name? [question_key] => key1 ) [7] => Array ( [question] => What's your job? [question_key] => key2 ) [8] => Array ( [question] => Where do you live? [question_key] => key3 ) )