3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach(array('100', '1000', '2000', '3000') as $_GET['id']){ if(!isset($_GET['id']) || !in_array($_GET['id'], array('1000', '2000'))){ echo 'not 1k or 2 k' . $_GET['id'] . PHP_EOL; } else { echo 'is 1k or 2k' . $_GET['id'] . PHP_EOL; } }
Output for git.master, git.master_jit, rfc.property-hooks
not 1k or 2 k100 is 1k or 2k1000 is 1k or 2k2000 not 1k or 2 k3000

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