3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(ini_get("pcre.backtrack_limit")); ini_set("pcre.backtrack_limit", 100 * 1000); var_dump(preg_match('/TEST/', "aa" . str_repeat("a", 100 * 1000000) . "TEST"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/30u2h
function name:  (null)
number of ops:  24
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'ini_get'
          2        SEND_VAL                                                 'pcre.backtrack_limit'
          3        DO_ICALL                                         $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
    3     6        INIT_FCALL                                               'ini_set'
          7        SEND_VAL                                                 'pcre.backtrack_limit'
          8        SEND_VAL                                                 100000
          9        DO_ICALL                                                 
    5    10        INIT_FCALL                                               'var_dump'
         11        INIT_FCALL                                               'preg_match'
         12        SEND_VAL                                                 '%2FTEST%2F'
         13        INIT_FCALL                                               'str_repeat'
         14        SEND_VAL                                                 'a'
         15        SEND_VAL                                                 100000000
         16        DO_ICALL                                         $3      
         17        CONCAT                                           ~4      'aa', $3
         18        CONCAT                                           ~5      ~4, 'TEST'
         19        SEND_VAL                                                 ~5
         20        DO_ICALL                                         $6      
         21        SEND_VAR                                                 $6
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.94 ms | 1395 KiB | 23 Q