3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tab_pieces['piece']['dossier'][0] = 'NAUJXR/201408010652/'; $tab_pieces['piece']['dossier'][1] = 'NAUJXR/201408010652/'; $tab_pieces['piece']['dossier'][2] = 'NAUJXR/201408010652/'; $tab_pieces['piece']['document'][0] = '005.jpg'; $tab_pieces['piece']['document'][1] = '004.jpg'; $tab_pieces['piece']['document'][2] = '007.jpg'; $tab_pieces['piece']['name'][0] = 'onde.jpg'; $tab_pieces['piece']['name'][1] = 'vague.jpg'; $tab_pieces['piece']['name'][2] = 'youpi.jpg'; //echo count( $tab_pieces['piece']['dossier'] ); for ($i=0; $i < count($tab_pieces['piece']['document']); $i++) { if ( in_array( '', $tab_pieces["piece"]["document"] ) ) { echo 'wdfds'; } else { echo 'bah non'; } } ?>
Output for git.master, git.master_jit, rfc.property-hooks
bah nonbah nonbah non

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:
49.5 ms | 401 KiB | 8 Q