3v4l.org

run code in 300+ PHP versions simultaneously
<?php $library = [ 'authors' => [ 'john_makkormik@example.com' => [ 'name' => 'Джон Маккормик', 'email' => 'john_makkormik@example.com', 'birthYear' => 1972, ], 'martin_robert@example.com' => [ 'name' => 'Мартин Роберт', 'email' => 'martin_robert@example.com', 'birthYear' => 1957, ], 'charles_levin@example.com' => [ 'name' => 'Чарльз Левин', 'email' => 'charles_levin@example.com', 'birthYear' => 1985, ], ], 'books' => [ [ 'title' => 'Чистый код: создание, анализ и рефакторинг', 'author' => 'martin_robert@example.com', ], [ 'title' => 'Девять алгоритмов, которые изменили будущее', 'author' => 'john_makkormik@example.com', ], [ 'title' => 'Идеальный программист', 'author' => 'martin_robert@example.com', ], [ 'title' => 'Еще одна книга', 'author' => 'charles_levin@example.com', ], ], ]; foreach ($library['books'] as $book) { $author = $library['authors'][$book['author']]; echo $book['title'] . ' - ' . $author['name'] . '(' . $author['email'] . ')' . PHP_EOL; }
Output for git.master, git.master_jit, rfc.property-hooks
Чистый код: создание, анализ и рефакторинг - Мартин Роберт(martin_robert@example.com) Девять алгоритмов, которые изменили будущее - Джон Маккормик(john_makkormik@example.com) Идеальный программист - Мартин Роберт(martin_robert@example.com) Еще одна книга - Чарльз Левин(charles_levin@example.com)

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:
36.4 ms | 406 KiB | 5 Q