3v4l.org

run code in 300+ PHP versions simultaneously
<?php $imageRes = (bool)count(array_intersect(['image1', 'image2'], ['image', 'image1', 'image2'])); var_dump($imageRes);

preferences:
23.87 ms | 405 KiB | 5 Q