3v4l.org

run code in 500+ PHP versions simultaneously
<?php $_GET['filters'] = array('type-of-light[550]|colour[569]', 'type-of-light[ceiling-lights]|colour[pink]', 'type-of-light=ceiling-lights&colour=green'); if(empty($_GET['colour'])){ foreach($_GET['filters'] as $filter) { if(preg_match('/colour\[(.*?)]/', $filter, $color)){ echo $color[1] . PHP_EOL; } } }
Output for git.master, git.master_jit, rfc.property-hooks
569 pink

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:
41.73 ms | 1420 KiB | 4 Q