3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "A N K U N F T 11.08.15 *** NEUBUCHUNG *** 11.08.15 xxx xxx X3 2830 14:25 17:50 18.08.15 xxx xxx X3 2831 18:40 F882129 dsdsaidsaia F882129 xxxyxyagydaysd\r \r \r A N K U N F T 18.08.15 *** NEUBUCHUNG *** 11.08.15 xxx xxx X3 2830 14:25 17:50 18.08.15 xxx xxx X3 2831 18:40 F881554 ZXCXZCXCXZCCXZ F881554 xcvcxvcxvcvxc F881554 xvcxvcxcvxxvccvxxcv 11.08.15 xxx xxx X3 2830 14:25 17:50 18.08.15 xxx xxx X3 2831 18:40 F881605 xczxcdfsfdsdfs F881605 zxccxzxzdffdsfds "; $re = "/(?:\sF\d+.*?\r\n\r\n)(\r\n)/"; $subst = ">>CUT HERE>>"; $result = preg_replace($re, $subst, $str); echo $result; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/B3AR3
function name:  (null)
number of ops:  11
compiled vars:  !0 = $str, !1 = $re, !2 = $subst, !3 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'A+N+K+U+N+F+T+++11.08.15%0A%2A%2A%2A+NEUBUCHUNG+%2A%2A%2A%0A+11.08.15++xxx++xxx++X3+2830++14%3A25+++17%3A50%0A+18.08.15++xxx++xxx++X3+2831++18%3A40%0A+F882129++dsdsaidsaia%0A+F882129++xxxyxyagydaysd%0D%0A%0D%0A%0D%0AA+N+K+U+N+F+T+++18.08.15%0A%2A%2A%2A+NEUBUCHUNG+%2A%2A%2A%0A+11.08.15++xxx++xxx++X3+2830++14%3A25+++17%3A50%0A+18.08.15++xxx++xxx++X3+2831++18%3A40%0A+F881554++ZXCXZCXCXZCCXZ%0A+F881554++xcvcxvcxvcvxc%0A+F881554++xvcxvcxcvxxvccvxxcv%0A%0A%0A11.08.15++xxx++xxx++X3+2830++14%3A25+++17%3A50%0A+18.08.15++xxx++xxx++X3+2831++18%3A40%0A+F881605++xczxcdfsfdsdfs%0A+F881605++zxccxzxzdffdsfds+'
   24     1        ASSIGN                                                   !1, '%2F%28%3F%3A%5CsF%5Cd%2B.%2A%3F%0D%0A%0D%0A%29%28%0D%0A%29%2F'
   26     2        ASSIGN                                                   !2, '%3E%3ECUT+HERE%3E%3E'
   28     3        INIT_FCALL                                               'preg_replace'
          4        SEND_VAR                                                 !1
          5        SEND_VAR                                                 !2
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $7      
          8        ASSIGN                                                   !3, $7
   30     9        ECHO                                                     !3
   31    10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.91 ms | 1394 KiB | 15 Q