3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "<tr> hello</tr>"; $text = preg_replace('~[\s\r\n]+(?=(?:(?!<tr).)*<\/tr>)~is', ' ', $text);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kgbJd
function name:  (null)
number of ops:  8
compiled vars:  !0 = $text
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Ctr%3E%0A%0Ahello%3C%2Ftr%3E'
    7     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%7E%5B%5Cs%5Cr%5Cn%5D%2B%28%3F%3D%28%3F%3A%28%3F%21%3Ctr%29.%29%2A%3C%5C%2Ftr%3E%29%7Eis'
          3        SEND_VAL                                                 '+'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.9 ms | 1394 KiB | 15 Q