3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cards = explode(',', '16, 01, 05'); $users = explode(',', 'User2, User1, User7'); $images = explode(',', 'img2.jpg, img1.jpg, img7.jpg'); $cards = array_map('trim', $cards); $users = array_map('trim', $users); $images = array_map('trim', $images); foreach ($cards as $key => $value) { echo sprintf( 'Box %02d = %s (%s link)', $cards[$key], $users[$key], $images[$key] ) . PHP_EOL; }
Output for git.master, git.master_jit, rfc.property-hooks
Box 16 = User2 (img2.jpg link) Box 01 = User1 (img1.jpg link) Box 05 = User7 (img7.jpg link)

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