3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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!'; print_r($message);
Output for 4.3.0 - 7.1.0
were sent invites!