3v4l.org

run code in 300+ PHP versions simultaneously
<?php class call{ public function objectiveCall($month,$year,$state){ return ["filters"=>[["field" => "mes", "value" => $month, "oper" => "equals"], ["field" => "anho", "value" => $year, "oper" => "equals"], ["field" => "state", "value" => [1,5,8]], "oper" => "equals"]]]; } } var_dump(json_encode((new call())->objectiveCall(2,3,4)));
Output for 7.0.0
Parse error: syntax error, unexpected ']', expecting ';' in /in/QIK3Z on line 6
Process exited with code 255.
Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.16
Parse error: syntax error, unexpected ']' in /in/QIK3Z on line 6
Process exited with code 255.

preferences:
160.77 ms | 1395 KiB | 24 Q