3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(PCRE_VERSION, ini_get('pcre.backtrack_limit'),ini_get('pcre.recursion_limit')); //$b = preg_replace('/b.*b/', '', 'baab' . str_repeat('a', 100024)); $b = preg_match('/(.)*/', str_repeat('x', 6000)); var_dump($b, preg_last_error());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KTe4u
function name:  (null)
number of ops:  27
compiled vars:  !0 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 '10.35+2020-05-09'
          2        INIT_FCALL                                               'ini_get'
          3        SEND_VAL                                                 'pcre.backtrack_limit'
          4        DO_ICALL                                         $1      
          5        SEND_VAR                                                 $1
          6        INIT_FCALL                                               'ini_get'
          7        SEND_VAL                                                 'pcre.recursion_limit'
          8        DO_ICALL                                         $2      
          9        SEND_VAR                                                 $2
         10        DO_ICALL                                                 
    4    11        INIT_FCALL                                               'preg_match'
         12        SEND_VAL                                                 '%2F%28.%29%2A%2F'
         13        INIT_FCALL                                               'str_repeat'
         14        SEND_VAL                                                 'x'
         15        SEND_VAL                                                 6000
         16        DO_ICALL                                         $4      
         17        SEND_VAR                                                 $4
         18        DO_ICALL                                         $5      
         19        ASSIGN                                                   !0, $5
    5    20        INIT_FCALL                                               'var_dump'
         21        SEND_VAR                                                 !0
         22        INIT_FCALL                                               'preg_last_error'
         23        DO_ICALL                                         $7      
         24        SEND_VAR                                                 $7
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.72 ms | 1395 KiB | 23 Q