3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/(?:([\t ])\1{1,})|(?:(\n\n)\n+)/m'; $str = ' Сегодня вечером фцвфцвфцвфцв '; $subst = '$1$2'; $result = preg_replace($re, $subst, $str); echo trim($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/R11Y9
function name:  (null)
number of ops:  14
compiled vars:  !0 = $re, !1 = $str, !2 = $subst, !3 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%2F%28%3F%3A%28%5B%5Ct+%5D%29%5C1%7B1%2C%7D%29%7C%28%3F%3A%28%5Cn%5Cn%29%5Cn%2B%29%2Fm'
    3     1        ASSIGN                                                   !1, '%0A%0A%0A%D0%A1%D0%B5%D0%B3%D0%BE%D0%B4%D0%BD%D1%8F+++++++%D0%B2%D0%B5%D1%87%D0%B5%D1%80%D0%BE%D0%BC%0A%0A%0A%0A%D1%84%D1%86%D0%B2%D1%84%D1%86%D0%B2%D1%84%D1%86%D0%B2%D1%84%D1%86%D0%B2%0A%0A%0A%0A'
   15     2        ASSIGN                                                   !2, '%241%242'
   17     3        INIT_FCALL                                               'preg_replace'
          4        SEND_VAR                                                 !0
          5        SEND_VAR                                                 !2
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $7      
          8        ASSIGN                                                   !3, $7
   19     9        INIT_FCALL                                               'trim'
         10        SEND_VAR                                                 !3
         11        DO_ICALL                                         $9      
         12        ECHO                                                     $9
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.72 ms | 998 KiB | 15 Q