3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = [ ['p_description' => 'Eggs', 'p_category' => 'Food', 'p_cost' => 20, 'p_stock' => 20], ['p_description' => 'Coca Cola', 'p_category' => 'Drinks', 'p_cost' => 5, 'p_stock' => 30], ]; $rows = []; foreach ($result as $row) { $rows[] = '[' . implode(', ', $row) . ']'; } echo implode(', ', $rows);
Output for git.master, git.master_jit, rfc.property-hooks
[Eggs, Food, 20, 20], [Coca Cola, Drinks, 5, 30]

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:
60.21 ms | 405 KiB | 5 Q