3v4l.org

run code in 300+ PHP versions simultaneously
<?php $answer['message'] = "this is a test message. next is emptyline and here are to empty lines end."; print(preg_replace("/^$/ui", "", str_replace(["\n\r", "\n\n", "\r\r","\r\n"], "\n", $answer['message'])));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HYFLA
function name:  (null)
number of ops:  15
compiled vars:  !0 = $answer
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN_DIM                                               !0, 'message'
          1        OP_DATA                                                  'this+is+a+test+message.+next+is+emptyline%0Aand+here+are+to+empty+lines%0A%0A%0Aend.'
    9     2        INIT_FCALL                                               'preg_replace'
          3        SEND_VAL                                                 '%2F%5E%24%2Fui'
          4        SEND_VAL                                                 ''
          5        INIT_FCALL                                               'str_replace'
          6        SEND_VAL                                                 <array>
          7        SEND_VAL                                                 '%0A'
          8        FETCH_DIM_R                                      ~2      !0, 'message'
          9        SEND_VAL                                                 ~2
         10        DO_ICALL                                         $3      
         11        SEND_VAR                                                 $3
         12        DO_ICALL                                         $4      
         13        ECHO                                                     $4
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
197.27 ms | 1394 KiB | 17 Q