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(strlen($b), preg_last_error());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dYIs9
function name:  (null)
number of ops:  30
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        STRLEN                                           ~8      !0
         24        SEND_VAL                                                 ~8
         25        INIT_FCALL                                               'preg_last_error'
         26        DO_ICALL                                         $9      
         27        SEND_VAR                                                 $9
         28        DO_ICALL                                                 
         29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.12 ms | 1395 KiB | 23 Q