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 = new Something(); $something->another_thing();
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.21
Parse error: syntax error, unexpected '=' in /in/hTFrt on line 18
Process exited with code 255.

preferences:
177.2 ms | 1395 KiB | 57 Q