<p dir="auto">This might be related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="79375276" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/14722" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/14722/hovercard" href="https://github.com/symfony/symfony/issues/14722">#14722</a>.</p>
<p dir="auto">I'm using <a href="https://github.com/php-vcr/php-vcr">php-vcr</a> which records HTTP requests and responses for playback during tests. By default it stores the requests in YAML and parses it using the symfony parser. It fails when parsing large JSON resposes. The one I'm currently dealing with is +150KB.</p>
<p dir="auto">This is what the last 100 lines of a stacktrace look like. I could share more if you'd like. I figure this is enough to show that it appears to be blowing the stack while using regex to parse. You have to scroll to the right to see the file names and line number.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="   16.3362   17926104                                                                                 -&gt; in_array() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:210
   16.3363   17925976                                                                                 -&gt; Symfony\Component\Yaml\Inline::parseQuotedScalar() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:212
   16.3363   17926200                                                                                   -&gt; substr() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:257
   16.3363   17926280                                                                                   -&gt; preg_match() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:257
   16.3364   17926792                                                                                   -&gt; strlen() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:261
   16.3364   17926840                                                                                   -&gt; substr() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:261
   16.3365   17926872                                                                                   -&gt; Symfony\Component\Yaml\Unescaper-&gt;unescapeSingleQuotedString() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:267
   16.3365   17927016                                                                                     -&gt; str_replace() /home/ubuntu/workspace/vendor/symfony/yaml/Unescaper.php:45
   16.3366   17926920                                                                                   -&gt; strlen() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:270
   16.3366   17925568                                                                               -&gt; substr() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:75
   16.3366   17925616                                                                               -&gt; preg_replace() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:75
   16.3367   17925112                                                                           -&gt; Symfony\Component\Yaml\Parser-&gt;moveToNextLine() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:71
   16.3367   17925160                                                                             -&gt; count() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:415
   16.3368   17925112                                                                           -&gt; Symfony\Component\Yaml\Parser-&gt;isCurrentLineEmpty() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:72
   16.3368   17925112                                                                             -&gt; Symfony\Component\Yaml\Parser-&gt;isCurrentLineBlank() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:592
   16.3369   17925208                                                                               -&gt; trim() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:602
   16.3369   17925112                                                                             -&gt; Symfony\Component\Yaml\Parser-&gt;isCurrentLineComment() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:592
   16.3369   17925208                                                                               -&gt; ltrim() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:613
   16.3370   17925208                                                                           -&gt; preg_match() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:82
   16.3370   17923840                                                                           -&gt; preg_match() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:118
   16.3371   17925192                                                                           -&gt; strpos() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:118
   16.3371   17925280                                                                           -&gt; Symfony\Component\Yaml\Inline::parse() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:125
   16.3372   17925328                                                                             -&gt; trim() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:49
   16.3372   17925408                                                                             -&gt; strlen() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:51
   16.3372   17925096                                                                           -&gt; Symfony\Component\Yaml\Inline::parseScalar() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:127
   16.3373   17926056                                                                             -&gt; in_array() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:210
   16.3373   17925976                                                                             -&gt; substr() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:223
   16.3374   17926064                                                                             -&gt; strlen() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:224
   16.3374   17926112                                                                             -&gt; strpos() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:227
   16.3374   17926064                                                                             -&gt; Symfony\Component\Yaml\Inline::evaluateScalar() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:238
   16.3375   17926112                                                                               -&gt; trim() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:434
   16.3375   17926200                                                                               -&gt; strtolower() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:435
   16.3376   17926336                                                                               -&gt; strpos() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:437
   16.3376   17926368                                                                               -&gt; is_numeric() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:466
   16.3377   17925184                                                                           -&gt; preg_match() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:195
   16.3377   17925184                                                                           -&gt; trim() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:202
   16.3377   17925184                                                                           -&gt; ltrim() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:202
   16.3378   17925264                                                                           -&gt; strpos() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:202
   16.3378   17925088                                                                           -&gt; Symfony\Component\Yaml\Parser-&gt;parseValue() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:223
   16.3379   17925184                                                                             -&gt; strpos() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:446
   16.3379   17925344                                                                             -&gt; preg_match() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:460
   16.3379   17925360                                                                             -&gt; Symfony\Component\Yaml\Inline::parse() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:467
   16.3380   17925408                                                                               -&gt; trim() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:49
   16.3380   17925488                                                                               -&gt; strlen() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:51
   16.3381   17925536                                                                               -&gt; function_exists() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:55
   16.3381   17925536                                                                               -&gt; ini_get() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:55
   16.3381   17926152                                                                               -&gt; Symfony\Component\Yaml\Inline::parseScalar() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:71
   16.3382   17926280                                                                                 -&gt; in_array() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:210
   16.3382   17926152                                                                                 -&gt; Symfony\Component\Yaml\Inline::parseQuotedScalar() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:212
   16.3383   17926376                                                                                   -&gt; substr() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:257
   16.3383   17926456                                                                                   -&gt; preg_match() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:257
   16.3384   17926968                                                                                   -&gt; strlen() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:261
   16.3384   17927016                                                                                   -&gt; substr() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:261
   16.3385   17927048                                                                                   -&gt; Symfony\Component\Yaml\Unescaper-&gt;unescapeSingleQuotedString() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:267
   16.3385   17927192                                                                                     -&gt; str_replace() /home/ubuntu/workspace/vendor/symfony/yaml/Unescaper.php:45
   16.3386   17927096                                                                                   -&gt; strlen() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:270
   16.3386   17925744                                                                               -&gt; substr() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:75
   16.3386   17925792                                                                               -&gt; preg_replace() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:75
   16.3387   17925280                                                                           -&gt; Symfony\Component\Yaml\Parser-&gt;moveToNextLine() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:71
   16.3387   17925328                                                                             -&gt; count() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:415
   16.3388   17922304                                                                         -&gt; Symfony\Component\Yaml\Parser-&gt;moveToNextLine() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:71
   16.3388   17922352                                                                           -&gt; count() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:415
   16.3389   17922304                                                                         -&gt; Symfony\Component\Yaml\Parser-&gt;isCurrentLineEmpty() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:72
   16.3389   17922304                                                                           -&gt; Symfony\Component\Yaml\Parser-&gt;isCurrentLineBlank() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:592
   16.3390   17922400                                                                             -&gt; trim() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:602
   16.3390   17922304                                                                           -&gt; Symfony\Component\Yaml\Parser-&gt;isCurrentLineComment() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:592
   16.3391   17922400                                                                             -&gt; ltrim() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:613
   16.3391   17922400                                                                         -&gt; preg_match() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:82
   16.3393   17921936                                                                         -&gt; preg_match() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:118
   16.3544   18516856                                                                         -&gt; strpos() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:118
   16.3546   18516944                                                                         -&gt; Symfony\Component\Yaml\Inline::parse() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:125
   16.3546   18516992                                                                           -&gt; trim() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:49
   16.3546   18517072                                                                           -&gt; strlen() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:51
   16.3547   18516760                                                                         -&gt; Symfony\Component\Yaml\Inline::parseScalar() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:127
   16.3547   18517720                                                                           -&gt; in_array() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:210
   16.3547   18517640                                                                           -&gt; substr() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:223
   16.3547   18517720                                                                           -&gt; strlen() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:224
   16.3548   18517768                                                                           -&gt; strpos() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:227
   16.3548   18517720                                                                           -&gt; Symfony\Component\Yaml\Inline::evaluateScalar() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:238
   16.3548   18517768                                                                             -&gt; trim() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:434
   16.3548   18517848                                                                             -&gt; strtolower() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:435
   16.3549   18517976                                                                             -&gt; strpos() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:437
   16.3549   18518008                                                                             -&gt; is_numeric() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:466
   16.3549   18516904                                                                         -&gt; preg_match() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:195
   16.3551   18516992                                                                         -&gt; trim() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:202
   16.3552   18516992                                                                         -&gt; ltrim() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:202
   16.3552   18665472                                                                         -&gt; strpos() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:202
   16.3553   18516896                                                                         -&gt; Symfony\Component\Yaml\Parser-&gt;parseValue() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:223
   16.3553   18516992                                                                           -&gt; strpos() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:446
   16.3553   18517152                                                                           -&gt; preg_match() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:460
   16.3554   18517168                                                                           -&gt; Symfony\Component\Yaml\Inline::parse() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:467
   16.3554   18517216                                                                             -&gt; trim() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:49
   16.3554   18665696                                                                             -&gt; strlen() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:51
   16.3555   18665744                                                                             -&gt; function_exists() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:55
   16.3555   18665744                                                                             -&gt; ini_get() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:55
   16.3555   18666360                                                                             -&gt; Symfony\Component\Yaml\Inline::parseScalar() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:71
   16.3556   18666488                                                                               -&gt; in_array() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:210
   16.3556   18666360                                                                               -&gt; Symfony\Component\Yaml\Inline::parseQuotedScalar() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:212
   16.3556   18666584                                                                                 -&gt; substr() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:257
   16.3557   18815064                                                                                 -&gt; preg_match() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:257"><pre class="notranslate"><code class="notranslate">   16.3362   17926104                                                                                 -&gt; in_array() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:210
   16.3363   17925976                                                                                 -&gt; Symfony\Component\Yaml\Inline::parseQuotedScalar() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:212
   16.3363   17926200                                                                                   -&gt; substr() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:257
   16.3363   17926280                                                                                   -&gt; preg_match() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:257
   16.3364   17926792                                                                                   -&gt; strlen() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:261
   16.3364   17926840                                                                                   -&gt; substr() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:261
   16.3365   17926872                                                                                   -&gt; Symfony\Component\Yaml\Unescaper-&gt;unescapeSingleQuotedString() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:267
   16.3365   17927016                                                                                     -&gt; str_replace() /home/ubuntu/workspace/vendor/symfony/yaml/Unescaper.php:45
   16.3366   17926920                                                                                   -&gt; strlen() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:270
   16.3366   17925568                                                                               -&gt; substr() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:75
   16.3366   17925616                                                                               -&gt; preg_replace() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:75
   16.3367   17925112                                                                           -&gt; Symfony\Component\Yaml\Parser-&gt;moveToNextLine() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:71
   16.3367   17925160                                                                             -&gt; count() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:415
   16.3368   17925112                                                                           -&gt; Symfony\Component\Yaml\Parser-&gt;isCurrentLineEmpty() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:72
   16.3368   17925112                                                                             -&gt; Symfony\Component\Yaml\Parser-&gt;isCurrentLineBlank() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:592
   16.3369   17925208                                                                               -&gt; trim() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:602
   16.3369   17925112                                                                             -&gt; Symfony\Component\Yaml\Parser-&gt;isCurrentLineComment() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:592
   16.3369   17925208                                                                               -&gt; ltrim() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:613
   16.3370   17925208                                                                           -&gt; preg_match() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:82
   16.3370   17923840                                                                           -&gt; preg_match() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:118
   16.3371   17925192                                                                           -&gt; strpos() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:118
   16.3371   17925280                                                                           -&gt; Symfony\Component\Yaml\Inline::parse() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:125
   16.3372   17925328                                                                             -&gt; trim() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:49
   16.3372   17925408                                                                             -&gt; strlen() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:51
   16.3372   17925096                                                                           -&gt; Symfony\Component\Yaml\Inline::parseScalar() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:127
   16.3373   17926056                                                                             -&gt; in_array() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:210
   16.3373   17925976                                                                             -&gt; substr() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:223
   16.3374   17926064                                                                             -&gt; strlen() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:224
   16.3374   17926112                                                                             -&gt; strpos() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:227
   16.3374   17926064                                                                             -&gt; Symfony\Component\Yaml\Inline::evaluateScalar() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:238
   16.3375   17926112                                                                               -&gt; trim() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:434
   16.3375   17926200                                                                               -&gt; strtolower() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:435
   16.3376   17926336                                                                               -&gt; strpos() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:437
   16.3376   17926368                                                                               -&gt; is_numeric() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:466
   16.3377   17925184                                                                           -&gt; preg_match() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:195
   16.3377   17925184                                                                           -&gt; trim() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:202
   16.3377   17925184                                                                           -&gt; ltrim() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:202
   16.3378   17925264                                                                           -&gt; strpos() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:202
   16.3378   17925088                                                                           -&gt; Symfony\Component\Yaml\Parser-&gt;parseValue() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:223
   16.3379   17925184                                                                             -&gt; strpos() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:446
   16.3379   17925344                                                                             -&gt; preg_match() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:460
   16.3379   17925360                                                                             -&gt; Symfony\Component\Yaml\Inline::parse() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:467
   16.3380   17925408                                                                               -&gt; trim() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:49
   16.3380   17925488                                                                               -&gt; strlen() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:51
   16.3381   17925536                                                                               -&gt; function_exists() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:55
   16.3381   17925536                                                                               -&gt; ini_get() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:55
   16.3381   17926152                                                                               -&gt; Symfony\Component\Yaml\Inline::parseScalar() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:71
   16.3382   17926280                                                                                 -&gt; in_array() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:210
   16.3382   17926152                                                                                 -&gt; Symfony\Component\Yaml\Inline::parseQuotedScalar() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:212
   16.3383   17926376                                                                                   -&gt; substr() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:257
   16.3383   17926456                                                                                   -&gt; preg_match() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:257
   16.3384   17926968                                                                                   -&gt; strlen() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:261
   16.3384   17927016                                                                                   -&gt; substr() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:261
   16.3385   17927048                                                                                   -&gt; Symfony\Component\Yaml\Unescaper-&gt;unescapeSingleQuotedString() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:267
   16.3385   17927192                                                                                     -&gt; str_replace() /home/ubuntu/workspace/vendor/symfony/yaml/Unescaper.php:45
   16.3386   17927096                                                                                   -&gt; strlen() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:270
   16.3386   17925744                                                                               -&gt; substr() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:75
   16.3386   17925792                                                                               -&gt; preg_replace() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:75
   16.3387   17925280                                                                           -&gt; Symfony\Component\Yaml\Parser-&gt;moveToNextLine() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:71
   16.3387   17925328                                                                             -&gt; count() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:415
   16.3388   17922304                                                                         -&gt; Symfony\Component\Yaml\Parser-&gt;moveToNextLine() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:71
   16.3388   17922352                                                                           -&gt; count() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:415
   16.3389   17922304                                                                         -&gt; Symfony\Component\Yaml\Parser-&gt;isCurrentLineEmpty() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:72
   16.3389   17922304                                                                           -&gt; Symfony\Component\Yaml\Parser-&gt;isCurrentLineBlank() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:592
   16.3390   17922400                                                                             -&gt; trim() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:602
   16.3390   17922304                                                                           -&gt; Symfony\Component\Yaml\Parser-&gt;isCurrentLineComment() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:592
   16.3391   17922400                                                                             -&gt; ltrim() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:613
   16.3391   17922400                                                                         -&gt; preg_match() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:82
   16.3393   17921936                                                                         -&gt; preg_match() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:118
   16.3544   18516856                                                                         -&gt; strpos() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:118
   16.3546   18516944                                                                         -&gt; Symfony\Component\Yaml\Inline::parse() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:125
   16.3546   18516992                                                                           -&gt; trim() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:49
   16.3546   18517072                                                                           -&gt; strlen() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:51
   16.3547   18516760                                                                         -&gt; Symfony\Component\Yaml\Inline::parseScalar() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:127
   16.3547   18517720                                                                           -&gt; in_array() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:210
   16.3547   18517640                                                                           -&gt; substr() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:223
   16.3547   18517720                                                                           -&gt; strlen() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:224
   16.3548   18517768                                                                           -&gt; strpos() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:227
   16.3548   18517720                                                                           -&gt; Symfony\Component\Yaml\Inline::evaluateScalar() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:238
   16.3548   18517768                                                                             -&gt; trim() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:434
   16.3548   18517848                                                                             -&gt; strtolower() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:435
   16.3549   18517976                                                                             -&gt; strpos() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:437
   16.3549   18518008                                                                             -&gt; is_numeric() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:466
   16.3549   18516904                                                                         -&gt; preg_match() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:195
   16.3551   18516992                                                                         -&gt; trim() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:202
   16.3552   18516992                                                                         -&gt; ltrim() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:202
   16.3552   18665472                                                                         -&gt; strpos() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:202
   16.3553   18516896                                                                         -&gt; Symfony\Component\Yaml\Parser-&gt;parseValue() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:223
   16.3553   18516992                                                                           -&gt; strpos() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:446
   16.3553   18517152                                                                           -&gt; preg_match() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:460
   16.3554   18517168                                                                           -&gt; Symfony\Component\Yaml\Inline::parse() /home/ubuntu/workspace/vendor/symfony/yaml/Parser.php:467
   16.3554   18517216                                                                             -&gt; trim() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:49
   16.3554   18665696                                                                             -&gt; strlen() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:51
   16.3555   18665744                                                                             -&gt; function_exists() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:55
   16.3555   18665744                                                                             -&gt; ini_get() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:55
   16.3555   18666360                                                                             -&gt; Symfony\Component\Yaml\Inline::parseScalar() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:71
   16.3556   18666488                                                                               -&gt; in_array() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:210
   16.3556   18666360                                                                               -&gt; Symfony\Component\Yaml\Inline::parseQuotedScalar() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:212
   16.3556   18666584                                                                                 -&gt; substr() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:257
   16.3557   18815064                                                                                 -&gt; preg_match() /home/ubuntu/workspace/vendor/symfony/yaml/Inline.php:257
</code></pre></div>
<p dir="auto">The following regexp uses a lot of recursion every time the content has a lot of double quotes:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(?:&quot;([^&quot;\\\\]*(?:\\\\.[^&quot;\\\\]*)*)&quot;"><pre class="notranslate"><code class="notranslate">(?:"([^"\\\\]*(?:\\\\.[^"\\\\]*)*)"
</code></pre></div>
<p dir="auto">Basically it is causing a crash in windows due to stack overflow on large inputs (~20k of escaped html in the field).</p>