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/rfKf8
function name:  (null)
number of ops:  29
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                                                 
    3    11        INIT_FCALL                                               'preg_replace'
         12        SEND_VAL                                                 '%2Fb.%2Ab%2F'
         13        SEND_VAL                                                 ''
         14        INIT_FCALL                                               'str_repeat'
         15        SEND_VAL                                                 'a'
         16        SEND_VAL                                                 100024
         17        DO_ICALL                                         $4      
         18        CONCAT                                           ~5      'baab', $4
         19        SEND_VAL                                                 ~5
         20        DO_ICALL                                         $6      
         21        ASSIGN                                                   !0, $6
    5    22        INIT_FCALL                                               'var_dump'
         23        SEND_VAR                                                 !0
         24        INIT_FCALL                                               'preg_last_error'
         25        DO_ICALL                                         $8      
         26        SEND_VAR                                                 $8
         27        DO_ICALL                                                 
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.08 ms | 1395 KiB | 23 Q