3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class myModel() { function search($q,$count=10) { $results = $db->query("SOME SEARCH QUERY ? LIMIT ?",array($q,intval($count))); return $this->objectize($results); } } class myController() { function ajaxSearch() { $q = $this->post('query'); $model = new myModel(); return $model->search($q,10); } }
Output for 5.3.0 - 5.3.24, 5.4.0 - 5.4.15
Parse error: syntax error, unexpected '(', expecting '{' in UE208 on line 2
Process exited with code 255.
Output for 5.3.25
Parse error: syntax error, unexpected '(', expecting '{' in /in/80fKu on line 2
Process exited with code 255.