3v4l.org

run code in 500+ PHP versions simultaneously
<?php $message = " My Number is \n 0\n 7\n 8\n 9\n Come Home\n "; $message = preg_replace('/\d\K\R+(?=\d)/', '', $message); echo $message;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DvUsI
function name:  (null)
number of ops:  6
compiled vars:  !0 = $message
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%0AMy+Number+is+%0A%0A0%0A%0A7%0A%0A8%0A%0A9%0A%0ACome+Home%0A%0A'
   12     1        FRAMELESS_ICALL_3                preg_replace        ~2      '%2F%5Cd%5CK%5CR%2B%28%3F%3D%5Cd%29%2F', ''
          2        OP_DATA                                                      !0
          3        ASSIGN                                                       !0, ~2
   14     4        ECHO                                                         !0
   15     5      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
163.67 ms | 1919 KiB | 13 Q