3v4l.org

run code in 300+ PHP versions simultaneously
<?php $literature = []; $literature['authors'] = [ ['name' => 'hhh', 'adress' => 'hemingway@oldtimers.com','yearOfBirth' => '1869'], ['name' => 'yyy', 'adress' => 'saintexupéry@oldtimers.com','yearOfBirth' => '1900'], ['name' => 'zzz', 'adress' => 'conandoyle@oldtimers.com','yearOfBirth' => '1859'] ]; $literature['books'] = [ ['title' => 'ggg', 'author' => $literature ['authors'][0]['name'], 'year' => 1943], ['title' => 'uuu', 'author' => $literature ['authors'][0]['name'], 'year' => 1887], ['title' => 'ttt!', 'author' => $literature ['authors'][0]['name'], 'year' => 1929], ['title' => 'vvv', 'author' => $literature ['authors'][0]['name'], 'year' => 1936], ['title' => 'ooo', 'author' => $literature ['authors'][0]['name'], 'year' => 1938] ]; print_r($literature);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [authors] => Array ( [0] => Array ( [name] => hhh [adress] => hemingway@oldtimers.com [yearOfBirth] => 1869 ) [1] => Array ( [name] => yyy [adress] => saintexupéry@oldtimers.com [yearOfBirth] => 1900 ) [2] => Array ( [name] => zzz [adress] => conandoyle@oldtimers.com [yearOfBirth] => 1859 ) ) [books] => Array ( [0] => Array ( [title] => ggg [author] => hhh [year] => 1943 ) [1] => Array ( [title] => uuu [author] => hhh [year] => 1887 ) [2] => Array ( [title] => ttt! [author] => hhh [year] => 1929 ) [3] => Array ( [title] => vvv [author] => hhh [year] => 1936 ) [4] => Array ( [title] => ooo [author] => hhh [year] => 1938 ) ) )

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
28.12 ms | 411 KiB | 5 Q