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/Gea91 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/UtlWD on line 14
Process exited with code 255.

preferences:
176.47 ms | 1387 KiB | 54 Q