1--TEST--
2Pattern exhausting PCRE JIT stack
3--FILE--
4<?php
5
6$re = '{^(\\s*\\{\\s*(?:"(?:[^\\0-\\x09\\x0a-\\x1f\\\\"]+|\\\\["bfnrt/\\\\]|\\\\u[a-fA-F0-9]{4})*"\\s*:\\s*(?:[0-9.]+|null|true|false|"(?:[^\\0-\\x09\\x0a-\\x1f\\\\"]+|\\\\["bfnrt/\\\\]|\\\\u[a-fA-F0-9]{4})*"|\\[(?:[^\\]]*|\\[(?:[^\\]]*|\\[(?:[^\\]]*|\\[(?:[^\\]]*|\\[[^\\]]*\\])*\\])*\\])*\\]|(?:[^{}]*|\\{(?:[^{}]*|\\{(?:[^{}]*|\\{(?:[^{}]*|\\{[^{}]*\\})*\\})*\\})*\\})*)*\\]|\\{(?:[^{}]*|\\{(?:[^{}]*|\\{(?:[^{}]*|\\{(?:[^{}]*|\\{[^{}]*\\})*\\})*\\})*\\})*\\})\\s*,\\s*)*?)("require"\\s*:\\s*)((?:[0-9.]+|null|true|false|"(?:[^\\0-\\x09\\x0a-\\x1f\\\\"]+|\\\\["bfnrt/\\\\]|\\\\u[a-fA-F0-9]{4})*"|\\[(?:[^\\]]*|\\[(?:[^\\]]*|\\[(?:[^\\]]*|\\[(?:[^\\]]*|\\[[^\\]]*\\])*\\])*\\])*\\]|(?:[^{}]*|\\{(?:[^{}]*|\\{(?:[^{}]*|\\{(?:[^{}]*|\\{[^{}]*\\})*\\})*\\})*\\})*)*\\]|\\{(?:[^{}]*|\\{(?:[^{}]*|\\{(?:[^{}]*|\\{(?:[^{}]*|\\{[^{}]*\\})*\\})*\\})*\\})*\\}))(.*)}s';
7
8$str = '{
9    "config": {
10        "cache-files-ttl": 0,
11        "discard-changes": true
12    },
13    "minimum-stability": "stable",
14    "prefer-stable": false,
15    "provide": {
16        "heroku-sys\\/cedar": "14.2016.03.12"
17    },
18    "repositories": [
19        {
20            "packagist": false
21        },
22        {
23            "type": "path",
24            "url": "\\/tmp\\/buildpacktUY7k\\/support\\/installer\\/",
25            "options": {
26                "symlink": false
27            }
28        },
29        {
30            "type": "composer",
31            "url": "https:\\/\\/lang-php.s3.amazonaws.com\\/dist-cedar-14-stable\\/"
32        },
33        {
34            "type": "package",
35            "package": [
36                {
37                    "type": "metapackage",
38                    "name": "algolia\\/algoliasearch-client-php",
39                    "version": "1.8.1",
40                    "require": {
41                        "heroku-sys\\/ext-mbstring": "*",
42                        "heroku-sys\\/php": ">=5.4"
43                    },
44                    "replace": [],
45                    "provide": [],
46                    "conflict": []
47                },
48                {
49                    "type": "metapackage",
50                    "name": "algolia\\/algoliasearch-laravel",
51                    "version": "1.0.10",
52                    "require": {
53                        "heroku-sys\\/php": ">=5.5.9"
54                    },
55                    "replace": [],
56                    "provide": [],
57                    "conflict": []
58                },
59                {
60                    "type": "metapackage",
61                    "name": "asm89\\/stack-cors",
62                    "version": "0.2.1",
63                    "require": {
64                        "heroku-sys\\/php": ">=5.3.2"
65                    },
66                    "replace": [],
67                    "provide": [],
68                    "conflict": []
69                },
70                {
71                    "type": "metapackage",
72                    "name": "aws\\/aws-sdk-php",
73                    "version": "3.15.7",
74                    "require": {
75                        "heroku-sys\\/php": ">=5.5"
76                    },
77                    "replace": [],
78                    "provide": [],
79                    "conflict": []
80                },
81                {
82                    "type": "metapackage",
83                    "name": "aws\\/aws-sdk-php-laravel",
84                    "version": "3.1.0",
85                    "require": {
86                        "heroku-sys\\/php": ">=5.5.9"
87                    },
88                    "replace": [],
89                    "provide": [],
90                    "conflict": []
91                },
92                {
93                    "type": "metapackage",
94                    "name": "barryvdh\\/laravel-cors",
95                    "version": "v0.7.3",
96                    "require": {
97                        "heroku-sys\\/php": ">=5.4.0"
98                    },
99                    "replace": [],
100                    "provide": [],
101                    "conflict": []
102                },
103                {
104                    "type": "metapackage",
105                    "name": "bookingsync\\/oauth2-bookingsync-php",
106                    "version": "0.1.3",
107                    "require": {
108                        "heroku-sys\\/php": ">=5.4.0"
109                    },
110                    "replace": [],
111                    "provide": [],
112                    "conflict": []
113                },
114                {
115                    "type": "metapackage",
116                    "name": "classpreloader\\/classpreloader",
117                    "version": "3.0.0",
118                    "require": {
119                        "heroku-sys\\/php": ">=5.5.9"
120                    },
121                    "replace": [],
122                    "provide": [],
123                    "conflict": []
124                },
125                {
126                    "type": "metapackage",
127                    "name": "danielstjules\\/stringy",
128                    "version": "1.10.0",
129                    "require": {
130                        "heroku-sys\\/ext-mbstring": "*",
131                        "heroku-sys\\/php": ">=5.3.0"
132                    },
133                    "replace": [],
134                    "provide": [],
135                    "conflict": []
136                },
137                {
138                    "type": "metapackage",
139                    "name": "dnoegel\\/php-xdg-base-dir",
140                    "version": "0.1",
141                    "require": {
142                        "heroku-sys\\/php": ">=5.3.2"
143                    },
144                    "replace": [],
145                    "provide": [],
146                    "conflict": []
147                },
148                {
149                    "type": "metapackage",
150                    "name": "doctrine\\/annotations",
151                    "version": "v1.2.7",
152                    "require": {
153                        "heroku-sys\\/php": ">=5.3.2"
154                    },
155                    "replace": [],
156                    "provide": [],
157                    "conflict": []
158                },
159                {
160                    "type": "metapackage",
161                    "name": "doctrine\\/cache",
162                    "version": "v1.6.0",
163                    "require": {
164                        "heroku-sys\\/php": "~5.5|~7.0"
165                    },
166                    "replace": [],
167                    "provide": [],
168                    "conflict": []
169                },
170                {
171                    "type": "metapackage",
172                    "name": "doctrine\\/collections",
173                    "version": "v1.3.0",
174                    "require": {
175                        "heroku-sys\\/php": ">=5.3.2"
176                    },
177                    "replace": [],
178                    "provide": [],
179                    "conflict": []
180                },
181                {
182                    "type": "metapackage",
183                    "name": "doctrine\\/common",
184                    "version": "v2.6.1",
185                    "require": {
186                        "heroku-sys\\/php": "~5.5|~7.0"
187                    },
188                    "replace": [],
189                    "provide": [],
190                    "conflict": []
191                },
192                {
193                    "type": "metapackage",
194                    "name": "doctrine\\/dbal",
195                    "version": "v2.5.4",
196                    "require": {
197                        "heroku-sys\\/php": ">=5.3.2"
198                    },
199                    "replace": [],
200                    "provide": [],
201                    "conflict": []
202                },
203                {
204                    "type": "metapackage",
205                    "name": "doctrine\\/inflector",
206                    "version": "v1.1.0",
207                    "require": {
208                        "heroku-sys\\/php": ">=5.3.2"
209                    },
210                    "replace": [],
211                    "provide": [],
212                    "conflict": []
213                },
214                {
215                    "type": "metapackage",
216                    "name": "doctrine\\/lexer",
217                    "version": "v1.0.1",
218                    "require": {
219                        "heroku-sys\\/php": ">=5.3.2"
220                    },
221                    "replace": [],
222                    "provide": [],
223                    "conflict": []
224                },
225                {
226                    "type": "metapackage",
227                    "name": "fabpot\\/goutte",
228                    "version": "v3.1.2",
229                    "require": {
230                        "heroku-sys\\/php": ">=5.5.0"
231                    },
232                    "replace": [],
233                    "provide": [],
234                    "conflict": []
235                },
236                {
237                    "type": "metapackage",
238                    "name": "graham-campbell\\/manager",
239                    "version": "v2.3.1",
240                    "require": {
241                        "heroku-sys\\/php": ">=5.5.9"
242                    },
243                    "replace": [],
244                    "provide": [],
245                    "conflict": []
246                },
247                {
248                    "type": "metapackage",
249                    "name": "guzzle\\/guzzle",
250                    "version": "v3.9.3",
251                    "require": {
252                        "heroku-sys\\/ext-curl": "*",
253                        "heroku-sys\\/php": ">=5.3.3"
254                    },
255                    "replace": [],
256                    "provide": [],
257                    "conflict": []
258                },
259                {
260                    "type": "metapackage",
261                    "name": "guzzlehttp\\/guzzle",
262                    "version": "6.1.1",
263                    "require": {
264                        "heroku-sys\\/php": ">=5.5.0"
265                    },
266                    "replace": [],
267                    "provide": [],
268                    "conflict": []
269                },
270                {
271                    "type": "metapackage",
272                    "name": "guzzlehttp\\/promises",
273                    "version": "1.1.0",
274                    "require": {
275                        "heroku-sys\\/php": ">=5.5.0"
276                    },
277                    "replace": [],
278                    "provide": [],
279                    "conflict": []
280                },
281                {
282                    "type": "metapackage",
283                    "name": "guzzlehttp\\/psr7",
284                    "version": "1.2.3",
285                    "require": {
286                        "heroku-sys\\/php": ">=5.4.0"
287                    },
288                    "replace": [],
289                    "provide": [],
290                    "conflict": []
291                },
292                {
293                    "type": "metapackage",
294                    "name": "intercom\\/intercom-php",
295                    "version": "v1.4.0",
296                    "require": {
297                        "heroku-sys\\/php": ">=5.4.0"
298                    },
299                    "replace": [],
300                    "provide": [],
301                    "conflict": []
302                },
303                {
304                    "type": "metapackage",
305                    "name": "intervention\\/image",
306                    "version": "2.3.6",
307                    "require": {
308                        "heroku-sys\\/ext-fileinfo": "*",
309                        "heroku-sys\\/php": ">=5.4.0"
310                    },
311                    "replace": [],
312                    "provide": [],
313                    "conflict": []
314                },
315                {
316                    "type": "metapackage",
317                    "name": "jakub-onderka\\/php-console-color",
318                    "version": "0.1",
319                    "require": {
320                        "heroku-sys\\/php": ">=5.3.2"
321                    },
322                    "replace": [],
323                    "provide": [],
324                    "conflict": []
325                },
326                {
327                    "type": "metapackage",
328                    "name": "jakub-onderka\\/php-console-highlighter",
329                    "version": "v0.3.2",
330                    "require": {
331                        "heroku-sys\\/php": ">=5.3.0"
332                    },
333                    "replace": [],
334                    "provide": [],
335                    "conflict": []
336                },
337                {
338                    "type": "metapackage",
339                    "name": "jeremeamia\\/SuperClosure",
340                    "version": "2.2.0",
341                    "require": {
342                        "heroku-sys\\/php": ">=5.4"
343                    },
344                    "replace": [],
345                    "provide": [],
346                    "conflict": []
347                },
348                {
349                    "type": "metapackage",
350                    "name": "jlapp\\/swaggervel",
351                    "version": "dev-master",
352                    "require": {
353                        "heroku-sys\\/php": ">=5.3.0"
354                    },
355                    "replace": [],
356                    "provide": [],
357                    "conflict": []
358                },
359                {
360                    "type": "metapackage",
361                    "name": "laravel\\/framework",
362                    "version": "v5.1.31",
363                    "require": {
364                        "heroku-sys\\/ext-mbstring": "*",
365                        "heroku-sys\\/ext-openssl": "*",
366                        "heroku-sys\\/php": ">=5.5.9"
367                    },
368                    "replace": [],
369                    "provide": [],
370                    "conflict": []
371                },
372                {
373                    "type": "metapackage",
374                    "name": "laravelcollective\\/html",
375                    "version": "v5.1.9",
376                    "require": {
377                        "heroku-sys\\/php": ">=5.5.9"
378                    },
379                    "replace": [],
380                    "provide": [],
381                    "conflict": []
382                },
383                {
384                    "type": "metapackage",
385                    "name": "league\\/flysystem",
386                    "version": "1.0.18",
387                    "require": {
388                        "heroku-sys\\/php": ">=5.4.0"
389                    },
390                    "replace": [],
391                    "provide": [],
392                    "conflict": []
393                },
394                {
395                    "type": "metapackage",
396                    "name": "league\\/flysystem-aws-s3-v3",
397                    "version": "1.0.9",
398                    "require": {
399                        "heroku-sys\\/php": ">=5.5.0"
400                    },
401                    "replace": [],
402                    "provide": [],
403                    "conflict": []
404                },
405                {
406                    "type": "metapackage",
407                    "name": "league\\/fractal",
408                    "version": "0.13.0",
409                    "require": {
410                        "heroku-sys\\/php": ">=5.4"
411                    },
412                    "replace": [],
413                    "provide": [],
414                    "conflict": []
415                },
416                {
417                    "type": "metapackage",
418                    "name": "league\\/glide",
419                    "version": "1.0.0",
420                    "require": {
421                        "heroku-sys\\/php": "^5.4 | ^7.0"
422                    },
423                    "replace": [],
424                    "provide": [],
425                    "conflict": []
426                },
427                {
428                    "type": "metapackage",
429                    "name": "league\\/oauth2-client",
430                    "version": "0.12.1",
431                    "require": {
432                        "heroku-sys\\/php": ">=5.4.0"
433                    },
434                    "replace": [],
435                    "provide": [],
436                    "conflict": []
437                },
438                {
439                    "type": "metapackage",
440                    "name": "mindscape\\/raygun4php",
441                    "version": "dev-master",
442                    "require": {
443                        "heroku-sys\\/php": ">=5.3.0"
444                    },
445                    "replace": [],
446                    "provide": [],
447                    "conflict": []
448                },
449                {
450                    "type": "metapackage",
451                    "name": "monolog\\/monolog",
452                    "version": "1.18.0",
453                    "require": {
454                        "heroku-sys\\/php": ">=5.3.0"
455                    },
456                    "replace": [],
457                    "provide": [],
458                    "conflict": []
459                },
460                {
461                    "type": "metapackage",
462                    "name": "mtdowling\\/cron-expression",
463                    "version": "v1.1.0",
464                    "require": {
465                        "heroku-sys\\/php": ">=5.3.2"
466                    },
467                    "replace": [],
468                    "provide": [],
469                    "conflict": []
470                },
471                {
472                    "type": "metapackage",
473                    "name": "mtdowling\\/jmespath.php",
474                    "version": "2.3.0",
475                    "require": {
476                        "heroku-sys\\/php": ">=5.4.0"
477                    },
478                    "replace": [],
479                    "provide": [],
480                    "conflict": []
481                },
482                {
483                    "type": "metapackage",
484                    "name": "namshi\\/jose",
485                    "version": "5.0.2",
486                    "require": {
487                        "heroku-sys\\/php": ">=5.3.3"
488                    },
489                    "replace": [],
490                    "provide": [],
491                    "conflict": []
492                },
493                {
494                    "type": "metapackage",
495                    "name": "nesbot\\/carbon",
496                    "version": "1.21.0",
497                    "require": {
498                        "heroku-sys\\/php": ">=5.3.0"
499                    },
500                    "replace": [],
501                    "provide": [],
502                    "conflict": []
503                },
504                {
505                    "type": "metapackage",
506                    "name": "nikic\\/php-parser",
507                    "version": "v2.0.1",
508                    "require": {
509                        "heroku-sys\\/ext-tokenizer": "*",
510                        "heroku-sys\\/php": ">=5.4"
511                    },
512                    "replace": [],
513                    "provide": [],
514                    "conflict": []
515                },
516                {
517                    "type": "metapackage",
518                    "name": "orangehill\\/iseed",
519                    "version": "dev-master",
520                    "require": {
521                        "heroku-sys\\/php": ">=5.4.0"
522                    },
523                    "replace": [],
524                    "provide": [],
525                    "conflict": []
526                },
527                {
528                    "type": "metapackage",
529                    "name": "paragonie\\/random_compat",
530                    "version": "v1.2.1",
531                    "require": {
532                        "heroku-sys\\/php": ">=5.2.0"
533                    },
534                    "replace": [],
535                    "provide": [],
536                    "conflict": []
537                },
538                {
539                    "type": "metapackage",
540                    "name": "phpseclib\\/phpseclib",
541                    "version": "0.3.10",
542                    "require": {
543                        "heroku-sys\\/php": ">=5.0.0"
544                    },
545                    "replace": [],
546                    "provide": [],
547                    "conflict": []
548                },
549                {
550                    "type": "metapackage",
551                    "name": "predis\\/predis",
552                    "version": "v1.0.3",
553                    "require": {
554                        "heroku-sys\\/php": ">=5.3.2"
555                    },
556                    "replace": [],
557                    "provide": [],
558                    "conflict": []
559                },
560                {
561                    "type": "metapackage",
562                    "name": "psr\\/http-message",
563                    "version": "1.0",
564                    "require": {
565                        "heroku-sys\\/php": ">=5.3.0"
566                    },
567                    "replace": [],
568                    "provide": [],
569                    "conflict": []
570                },
571                {
572                    "type": "metapackage",
573                    "name": "psy\\/psysh",
574                    "version": "v0.7.1",
575                    "require": {
576                        "heroku-sys\\/php": ">=5.3.9"
577                    },
578                    "replace": [],
579                    "provide": [],
580                    "conflict": []
581                },
582                {
583                    "type": "metapackage",
584                    "name": "swiftmailer\\/swiftmailer",
585                    "version": "v5.4.1",
586                    "require": {
587                        "heroku-sys\\/php": ">=5.3.3"
588                    },
589                    "replace": [],
590                    "provide": [],
591                    "conflict": []
592                },
593                {
594                    "type": "metapackage",
595                    "name": "symfony\\/browser-kit",
596                    "version": "v2.8.3",
597                    "require": {
598                        "heroku-sys\\/php": ">=5.3.9"
599                    },
600                    "replace": [],
601                    "provide": [],
602                    "conflict": []
603                },
604                {
605                    "type": "metapackage",
606                    "name": "symfony\\/console",
607                    "version": "v2.7.10",
608                    "require": {
609                        "heroku-sys\\/php": ">=5.3.9"
610                    },
611                    "replace": [],
612                    "provide": [],
613                    "conflict": []
614                },
615                {
616                    "type": "metapackage",
617                    "name": "symfony\\/css-selector",
618                    "version": "v2.7.10",
619                    "require": {
620                        "heroku-sys\\/php": ">=5.3.9"
621                    },
622                    "replace": [],
623                    "provide": [],
624                    "conflict": []
625                },
626                {
627                    "type": "metapackage",
628                    "name": "symfony\\/debug",
629                    "version": "v2.7.10",
630                    "require": {
631                        "heroku-sys\\/php": ">=5.3.9"
632                    },
633                    "replace": [],
634                    "provide": [],
635                    "conflict": []
636                },
637                {
638                    "type": "metapackage",
639                    "name": "symfony\\/dom-crawler",
640                    "version": "v2.7.10",
641                    "require": {
642                        "heroku-sys\\/php": ">=5.3.9"
643                    },
644                    "replace": [],
645                    "provide": [],
646                    "conflict": []
647                },
648                {
649                    "type": "metapackage",
650                    "name": "symfony\\/event-dispatcher",
651                    "version": "v2.8.3",
652                    "require": {
653                        "heroku-sys\\/php": ">=5.3.9"
654                    },
655                    "replace": [],
656                    "provide": [],
657                    "conflict": []
658                },
659                {
660                    "type": "metapackage",
661                    "name": "symfony\\/finder",
662                    "version": "v2.7.10",
663                    "require": {
664                        "heroku-sys\\/php": ">=5.3.9"
665                    },
666                    "replace": [],
667                    "provide": [],
668                    "conflict": []
669                },
670                {
671                    "type": "metapackage",
672                    "name": "symfony\\/http-foundation",
673                    "version": "v2.7.10",
674                    "require": {
675                        "heroku-sys\\/php": ">=5.3.9"
676                    },
677                    "replace": [],
678                    "provide": [],
679                    "conflict": []
680                },
681                {
682                    "type": "metapackage",
683                    "name": "symfony\\/http-kernel",
684                    "version": "v2.7.10",
685                    "require": {
686                        "heroku-sys\\/php": ">=5.3.9"
687                    },
688                    "replace": [],
689                    "provide": [],
690                    "conflict": []
691                },
692                {
693                    "type": "metapackage",
694                    "name": "symfony\\/polyfill-php56",
695                    "version": "v1.1.0",
696                    "require": {
697                        "heroku-sys\\/php": ">=5.3.3"
698                    },
699                    "replace": [],
700                    "provide": [],
701                    "conflict": []
702                },
703                {
704                    "type": "metapackage",
705                    "name": "symfony\\/polyfill-util",
706                    "version": "v1.1.0",
707                    "require": {
708                        "heroku-sys\\/php": ">=5.3.3"
709                    },
710                    "replace": [],
711                    "provide": [],
712                    "conflict": []
713                },
714                {
715                    "type": "metapackage",
716                    "name": "symfony\\/process",
717                    "version": "v2.7.10",
718                    "require": {
719                        "heroku-sys\\/php": ">=5.3.9"
720                    },
721                    "replace": [],
722                    "provide": [],
723                    "conflict": []
724                },
725                {
726                    "type": "metapackage",
727                    "name": "symfony\\/routing",
728                    "version": "v2.7.10",
729                    "require": {
730                        "heroku-sys\\/php": ">=5.3.9"
731                    },
732                    "replace": [],
733                    "provide": [],
734                    "conflict": []
735                },
736                {
737                    "type": "metapackage",
738                    "name": "symfony\\/translation",
739                    "version": "v2.7.10",
740                    "require": {
741                        "heroku-sys\\/php": ">=5.3.9"
742                    },
743                    "replace": [],
744                    "provide": [],
745                    "conflict": []
746                },
747                {
748                    "type": "metapackage",
749                    "name": "symfony\\/var-dumper",
750                    "version": "v2.7.10",
751                    "require": {
752                        "heroku-sys\\/php": ">=5.3.9"
753                    },
754                    "replace": [],
755                    "provide": [],
756                    "conflict": []
757                },
758                {
759                    "type": "metapackage",
760                    "name": "twilio\\/sdk",
761                    "version": "4.10.0",
762                    "require": {
763                        "heroku-sys\\/php": ">=5.2.1"
764                    },
765                    "replace": [],
766                    "provide": [],
767                    "conflict": []
768                },
769                {
770                    "type": "metapackage",
771                    "name": "tymon\\/jwt-auth",
772                    "version": "0.5.9",
773                    "require": {
774                        "heroku-sys\\/php": ">=5.4.0"
775                    },
776                    "replace": [],
777                    "provide": [],
778                    "conflict": []
779                },
780                {
781                    "type": "metapackage",
782                    "name": "vinkla\\/algolia",
783                    "version": "2.2.1",
784                    "require": {
785                        "heroku-sys\\/php": "^5.5.9 || ^7.0"
786                    },
787                    "replace": [],
788                    "provide": [],
789                    "conflict": []
790                },
791                {
792                    "type": "metapackage",
793                    "name": "vlucas\\/phpdotenv",
794                    "version": "v1.1.1",
795                    "require": {
796                        "heroku-sys\\/php": ">=5.3.2"
797                    },
798                    "replace": [],
799                    "provide": [],
800                    "conflict": []
801                },
802                {
803                    "type": "metapackage",
804                    "name": "zircote\\/swagger-php",
805                    "version": "2.0.6",
806                    "require": {
807                        "heroku-sys\\/php": ">=5.4.0"
808                    },
809                    "replace": [],
810                    "provide": [],
811                    "conflict": []
812                },
813                {
814                    "type": "metapackage",
815                    "name": "composer.json\\/composer.lock",
816                    "version": "dev-a923f6cdbbc9439cabb74aa9003f6d51",
817                    "require": {
818                        "heroku-sys\\/php": ">=5.5.9",
819                        "heroku-sys\\/ext-gd": "*",
820                        "heroku-sys\\/ext-exif": "*",
821                        "heroku-sys\\/ext-fileinfo": "*"
822                    },
823                    "replace": [],
824                    "provide": [],
825                    "conflict": []
826                }
827            ]
828        }
829    ],
830    "require": {
831        "composer.json\\/composer.lock": "dev-a923f6cdbbc9439cabb74aa9003f6d51",
832        "algolia\\/algoliasearch-client-php": "1.8.1",
833        "algolia\\/algoliasearch-laravel": "1.0.10",
834        "asm89\\/stack-cors": "0.2.1",
835        "aws\\/aws-sdk-php": "3.15.7",
836        "aws\\/aws-sdk-php-laravel": "3.1.0",
837        "barryvdh\\/laravel-cors": "v0.7.3",
838        "bookingsync\\/oauth2-bookingsync-php": "0.1.3",
839        "classpreloader\\/classpreloader": "3.0.0",
840        "danielstjules\\/stringy": "1.10.0",
841        "dnoegel\\/php-xdg-base-dir": "0.1",
842        "doctrine\\/annotations": "v1.2.7",
843        "doctrine\\/cache": "v1.6.0",
844        "doctrine\\/collections": "v1.3.0",
845        "doctrine\\/common": "v2.6.1",
846        "doctrine\\/dbal": "v2.5.4",
847        "doctrine\\/inflector": "v1.1.0",
848        "doctrine\\/lexer": "v1.0.1",
849        "fabpot\\/goutte": "v3.1.2",
850        "graham-campbell\\/manager": "v2.3.1",
851        "guzzle\\/guzzle": "v3.9.3",
852        "guzzlehttp\\/guzzle": "6.1.1",
853        "guzzlehttp\\/promises": "1.1.0",
854        "guzzlehttp\\/psr7": "1.2.3",
855        "intercom\\/intercom-php": "v1.4.0",
856        "intervention\\/image": "2.3.6",
857        "jakub-onderka\\/php-console-color": "0.1",
858        "jakub-onderka\\/php-console-highlighter": "v0.3.2",
859        "jeremeamia\\/SuperClosure": "2.2.0",
860        "jlapp\\/swaggervel": "dev-master",
861        "laravel\\/framework": "v5.1.31",
862        "laravelcollective\\/html": "v5.1.9",
863        "league\\/flysystem": "1.0.18",
864        "league\\/flysystem-aws-s3-v3": "1.0.9",
865        "league\\/fractal": "0.13.0",
866        "league\\/glide": "1.0.0",
867        "league\\/oauth2-client": "0.12.1",
868        "mindscape\\/raygun4php": "dev-master",
869        "monolog\\/monolog": "1.18.0",
870        "mtdowling\\/cron-expression": "v1.1.0",
871        "mtdowling\\/jmespath.php": "2.3.0",
872        "namshi\\/jose": "5.0.2",
873        "nesbot\\/carbon": "1.21.0",
874        "nikic\\/php-parser": "v2.0.1",
875        "orangehill\\/iseed": "dev-master",
876        "paragonie\\/random_compat": "v1.2.1",
877        "phpseclib\\/phpseclib": "0.3.10",
878        "predis\\/predis": "v1.0.3",
879        "psr\\/http-message": "1.0",
880        "psy\\/psysh": "v0.7.1",
881        "swiftmailer\\/swiftmailer": "v5.4.1",
882        "symfony\\/browser-kit": "v2.8.3",
883        "symfony\\/console": "v2.7.10",
884        "symfony\\/css-selector": "v2.7.10",
885        "symfony\\/debug": "v2.7.10",
886        "symfony\\/dom-crawler": "v2.7.10",
887        "symfony\\/event-dispatcher": "v2.8.3",
888        "symfony\\/finder": "v2.7.10",
889        "symfony\\/http-foundation": "v2.7.10",
890        "symfony\\/http-kernel": "v2.7.10",
891        "symfony\\/polyfill-php56": "v1.1.0",
892        "symfony\\/polyfill-util": "v1.1.0",
893        "symfony\\/process": "v2.7.10",
894        "symfony\\/routing": "v2.7.10",
895        "symfony\\/translation": "v2.7.10",
896        "symfony\\/var-dumper": "v2.7.10",
897        "twilio\\/sdk": "4.10.0",
898        "tymon\\/jwt-auth": "0.5.9",
899        "vinkla\\/algolia": "2.2.1",
900        "vlucas\\/phpdotenv": "v1.1.1",
901        "zircote\\/swagger-php": "2.0.6",
902        "heroku-sys\\/apache": "^2.4.10",
903        "heroku-sys\\/nginx": "~1.8.0"
904    }
905}';
906
907$count = preg_match($re, $str, $matches);
908
909if($count === false) {
910    switch (preg_last_error()) {
911        case PREG_NO_ERROR:
912            throw new \RuntimeException('Failed to execute regex: PREG_NO_ERROR', PREG_NO_ERROR);
913        case PREG_INTERNAL_ERROR:
914            throw new \RuntimeException('Failed to execute regex: PREG_INTERNAL_ERROR', PREG_INTERNAL_ERROR);
915        case PREG_BACKTRACK_LIMIT_ERROR:
916            throw new \RuntimeException('Failed to execute regex: PREG_BACKTRACK_LIMIT_ERROR', PREG_BACKTRACK_LIMIT_ERROR);
917        case PREG_RECURSION_LIMIT_ERROR:
918            throw new \RuntimeException('Failed to execute regex: PREG_RECURSION_LIMIT_ERROR', PREG_RECURSION_LIMIT_ERROR);
919        case PREG_BAD_UTF8_ERROR:
920            throw new \RuntimeException('Failed to execute regex: PREG_BAD_UTF8_ERROR', PREG_BAD_UTF8_ERROR);
921        case PREG_BAD_UTF8_OFFSET_ERROR:
922            throw new \RuntimeException('Failed to execute regex: PREG_BAD_UTF8_OFFSET_ERROR', PREG_BAD_UTF8_OFFSET_ERROR);
923        case PREG_JIT_STACKLIMIT_ERROR:
924            throw new \RuntimeException('Failed to execute regex: PREG_JIT_STACKLIMIT_ERROR', PREG_JIT_STACKLIMIT_ERROR);
925        default:
926            throw new \RuntimeException('Failed to execute regex: Unknown error');
927    }
928} else {
929	var_dump("Done, $count matches.");
930}
931?>
932==DONE==
933--EXPECT--
934string(16) "Done, 1 matches."
935==DONE==
936