3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo json_encode('foo\bar')); echo json_decode('"name:*br\\\\:\u00d6*"')); echo json_decode('{ "query": { "bool": { "must": [ { "query_string": { "query": "name:*br\\Ö*", "default_operator": "AND", "analyze_wildcard": "true" } } ], "should": [ { "match": { "name": { "query": "br\\:Ö", "type": "phrase_prefix" } } } ] } } }');
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.21
Parse error: syntax error, unexpected ')', expecting ',' or ';' in /in/GYS9L on line 3
Process exited with code 255.

preferences:
183.09 ms | 1395 KiB | 57 Q