3v4l.org

run code in 300+ PHP versions simultaneously
<?php $recipients = ['aaa@b.com', 'bbbb@b.com', 'ccccc@b.com']; print_r($recipients); echo 'To: ' . array_shift($recipients) . PHP_EOL; foreach ($recipients as $r){ echo 'Cc: ' . array_shift($recipients) . PHP_EOL; } print_r($recipients);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => aaa@b.com [1] => bbbb@b.com [2] => ccccc@b.com ) To: aaa@b.com Cc: bbbb@b.com Cc: ccccc@b.com Array ( )

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