3v4l.org

run code in 300+ PHP versions simultaneously
<?php $texts[] = <<<TEXT EXCLUDE this entire line include this line even this to EXCLUDE and EXCLUDE this and this as single match and EXCLUDE this line TEXT; $texts[] = <<<TEXT EXCLUDE this entire line and EXCLUDE this and this as single match TEXT; $texts[] = <<<TEXT EXCLUDE this entire line even this to EXCLUDE and EXCLUDE this and EXCLUDE this line TEXT; $texts[] = <<<TEXT include this line even this to EXCLUDE TEXT; var_export( preg_replace('/(\R)?.*\bEXCLUDE\b.*(?(1)|\R?)/', '', $texts) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4kqsD
function name:  (null)
number of ops:  17
compiled vars:  !0 = $texts
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN_DIM                                               !0
    4     1        OP_DATA                                                  'EXCLUDE+this+entire+line%0Ainclude+this+line%0Aeven+this+to+EXCLUDE%0Aand+EXCLUDE+this%0Aand+this+as+single+match%0Aand+EXCLUDE+this+line'
   12     2        ASSIGN_DIM                                               !0
   13     3        OP_DATA                                                  'EXCLUDE+this+entire+line%0Aand+EXCLUDE+this%0Aand+this+as+single+match'
   18     4        ASSIGN_DIM                                               !0
   19     5        OP_DATA                                                  'EXCLUDE+this+entire+line%0Aeven+this+to+EXCLUDE%0Aand+EXCLUDE+this%0Aand+EXCLUDE+this+line'
   25     6        ASSIGN_DIM                                               !0
   26     7        OP_DATA                                                  'include+this+line%0Aeven+this+to+EXCLUDE'
   30     8        INIT_FCALL                                               'var_export'
   31     9        INIT_FCALL                                               'preg_replace'
         10        SEND_VAL                                                 '%2F%28%5CR%29%3F.%2A%5CbEXCLUDE%5Cb.%2A%28%3F%281%29%7C%5CR%3F%29%2F'
         11        SEND_VAL                                                 ''
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $5      
         14        SEND_VAR                                                 $5
   30    15        DO_ICALL                                                 
   32    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.64 ms | 998 KiB | 15 Q