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(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/3VrNZ
function name:  (null)
number of ops:  10
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                                               'str_replace'
          3        SEND_VAL                                                 <array>
          4        SEND_VAL                                                 '%0A'
          5        FETCH_DIM_R                                      ~2      !0, 'message'
          6        SEND_VAL                                                 ~2
          7        DO_ICALL                                         $3      
          8        ECHO                                                     $3
   10     9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.1 ms | 1394 KiB | 15 Q