3v4l.org

run code in 300+ PHP versions simultaneously
<?php class PathController { public function get_route() { return Response::json(Cache::remember('route-point', 10, function() { foreach (array("Sprint", "Score", "Section") as $type) { $type_count = static::do_something($type); } } //... }
Output for 5.4.18
Parse error: syntax error, unexpected '}' in /in/iddMC on line 14
Process exited with code 255.
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.17
Parse error: syntax error, unexpected '}' in /in/oG9tM on line 14
Process exited with code 255.

preferences:
176.9 ms | 1395 KiB | 54 Q