3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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 = new Something(); $something->another_thing();
Output for 5.3.0 - 5.4.21
Parse error: syntax error, unexpected '=' in /in/hTFrt on line 18
Process exited with code 255.