3v4l.org

run code in 300+ PHP versions simultaneously
<?php $v1_d1 = 10; $v1_w2 = 20; $v1_d2 = 30; $v1_w3 = 40; $set = ['v1_d1', 'v1_w2', 'v1_d2', 'v1_w3']; foreach(compact(...$set) as $var) { echo $var; }
Output for git.master, git.master_jit, rfc.property-hooks
10203040

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