3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( array('malaria', 'pneumonia', 'HIV', 'malnutrion'), array('allfields', 'title', 'keywords', 'abstract'), array('and', 'or', 'or', 'or'), ); $new_array = array(); $count = count($array[0]); for ($i = 0; $i < $count; $i++) { $new_array[] = '(' . implode(',', array_column($array, $i)) . ')'; } echo implode(', ', $new_array);
Output for git.master_jit, git.master, rfc.property-hooks
(malaria,allfields,and), (pneumonia,title,or), (HIV,keywords,or), (malnutrion,abstract,or)

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.73 ms | 405 KiB | 5 Q