3v4l.org

run code in 300+ PHP versions simultaneously
<?php $emailed = array('cam.hurd@gmail.com'); $message = count($emailed) > 10 ? implode(array_slice($emailed, 0, 10), ', ') . 'and ' . count($emailed) . ' others were sent an invite!' : implode($emailed, ', ') . count($emailed) == 1 ? ' was sent an invite' : ' were sent invites!';

preferences:
51.2 ms | 402 KiB | 5 Q