3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "\n".'<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/BZDXT
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, '%0A%3Ctr%3Ehello%3C%2Ftr%3E'
    5     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:
166 ms | 1398 KiB | 15 Q