3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $allgroups = array( grupp1, grupp2, grupp3, grupp4, grupp5 ); $membership = array( grupp1, grupp5 ); foreach($allgroups as $tmp) { if(empty( array_intersect( array($tmp),$membership) )){ var_dump('user inte medlem i {$tmp}\n'); } else { var_dump('user är medlem i {$tmp}\n'); };
Output for 5.3.0 - 5.4.24
Fatal error: Can't use function return value in write context in /in/0jbRO on line 15
Process exited with code 255.