3v4l.org

run code in 300+ PHP versions simultaneously
<?php $stuff = array('germany', 'java', 'help', array('hello', 'help', array('save', 'me', 'python'))); echo recurrsiveTraverseArray($stuff); function recurrsiveTraverseArray($arr, $html=null){ $html = '<ul>'; foreach($arr as $v){ if(is_array($v)){ $html .= recurrsiveTraverseArray($v, $html); }else{ $html .= '<li>'.$v.'</li>'; } } $html .= '</ul>'; return $html; }
Output for git.master, git.master_jit, rfc.property-hooks
<ul><li>germany</li><li>java</li><li>help</li><ul><li>hello</li><li>help</li><ul><li>save</li><li>me</li><li>python</li></ul></ul></ul>

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