3v4l.org

run code in 300+ PHP versions simultaneously
<?php $regex = '/(?<!<br>)(?<!\s)\s*(\((?:(?:(?!<br>|\(|\)).)*(?:\((?:(?!<br>|\(|\)).)*\))?)*?\))\s*(\{)/si'; $test_string = '(""L"",function(){})'; echo preg_replace($regex,' $1 $2',$test_string);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/C4doc
function name:  (null)
number of ops:  9
compiled vars:  !0 = $regex, !1 = $test_string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%2F%28%3F%3C%21%3Cbr%3E%29%28%3F%3C%21%5Cs%29%5Cs%2A%28%5C%28%28%3F%3A%28%3F%3A%28%3F%21%3Cbr%3E%7C%5C%28%7C%5C%29%29.%29%2A%28%3F%3A%5C%28%28%3F%3A%28%3F%21%3Cbr%3E%7C%5C%28%7C%5C%29%29.%29%2A%5C%29%29%3F%29%2A%3F%5C%29%29%5Cs%2A%28%5C%7B%29%2Fsi'
    3     1        ASSIGN                                                   !1, '%28%22%22L%22%22%2Cfunction%28%29%7B%7D%29'
    4     2        INIT_FCALL                                               'preg_replace'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 '+%241+%242'
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $4      
          7        ECHO                                                     $4
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.48 ms | 1394 KiB | 15 Q