3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = str_repeat("{ \n}", 20); preg_replace('{((.*\n+)+)}','x',$str); var_dump($str);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/P7V94
function name:  (null)
number of ops:  14
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'str_repeat'
          1        SEND_VAL                                                 '%7B+%0A%7D'
          2        SEND_VAL                                                 20
          3        DO_ICALL                                         $1      
          4        ASSIGN                                                   !0, $1
    3     5        INIT_FCALL                                               'preg_replace'
          6        SEND_VAL                                                 '%7B%28%28.%2A%5Cn%2B%29%2B%29%7D'
          7        SEND_VAL                                                 'x'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
    4    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.34 ms | 1394 KiB | 19 Q