3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Something { public function __construct() { $this->current_user = Auth::get_user(); } public function another_thing() { $groups = array_filter(array(0, 1, 5, 10, 50), function($item) { return $item < $this->current_user->group; }); } } Something::another_thing();

preferences:
35.9 ms | 402 KiB | 5 Q