3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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)));
based on L9LAP
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.4.10 - 5.6.16
Parse error: syntax error, unexpected ']' in /in/QIK3Z on line 6
Process exited with code 255.
Output for 5.3.20 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/QIK3Z on line 4
Process exited with code 255.