3v4l.org

run code in 500+ PHP versions simultaneously
<?php $example = "\n\rSome Kind\r of \nText\n\n"; $replace = array("\r\n", "\n\r", "\r", "\n"); $subs = array("","","",""); $text = str_replace($replace, $subs, $example ); var_dump($text);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DnsfP
function name:  (null)
number of ops:  10
compiled vars:  !0 = $example, !1 = $replace, !2 = $subs, !3 = $text
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%0A%0DSome+Kind%0D+of+%0AText%0A%0A'
    6     1        ASSIGN                                                       !1, <array>
    7     2        ASSIGN                                                       !2, <array>
    9     3        FRAMELESS_ICALL_3                str_replace         ~7      !1, !2
          4        OP_DATA                                                      !0
          5        ASSIGN                                                       !3, ~7
   10     6        INIT_FCALL                                                   'var_dump'
          7        SEND_VAR                                                     !3
          8        DO_ICALL                                                     
          9      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
172.11 ms | 2829 KiB | 14 Q