3v4l.org

run code in 300+ 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:  13
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        INIT_FCALL                                               'str_replace'
          4        SEND_VAR                                                 !1
          5        SEND_VAR                                                 !2
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $7      
          8        ASSIGN                                                   !3, $7
   10     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !3
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.6 ms | 1010 KiB | 15 Q