3v4l.org

run code in 300+ PHP versions simultaneously
<?php function status(int $now) { return sprintf( '%d is %s', $now, match (true) { $now % 2 == 0 => 'even', default => 'odd' } ); } $now = time(); var_dump(status($now), status($now + 1));

preferences:
40.2 ms | 406 KiB | 5 Q