3v4l.org

run code in 300+ PHP versions simultaneously
<?php $srv = array('build', 'calss'); for ($i = 0; $i < 1000; $i++) { $srv_keys = array_keys($srv); $cant_be_together = array('build', 'class'); if(count(array_intersect($srv_keys, $cant_be_together)) === count($cant_be_together)) { $str = $i; } }

preferences:
62.78 ms | 402 KiB | 5 Q