3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array( 'data_1', 'data_2', 'data_3', 'data_4', 'data_5' => array( 'data_5_1', 'data_5_2' ) ); function display_list($array) { foreach ($array as $k => $v) { if (is_array($v)) { echo "$k\n"; display_list($v); } else { echo "$v\n"; } } } display_list($data);
Output for git.master, git.master_jit, rfc.property-hooks
data_1 data_2 data_3 data_4 data_5 data_5_1 data_5_2

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