3v4l.org

run code in 500+ PHP versions simultaneously
<?php $value = str_replace( ' ', "\n", 'abc efg hij' ); $value = str_replace( ' ', "\n", array( 'abc', 'efg', 'hij' ) ); // What about for boolean, int, float? $value = str_replace( ' ', "\n", false ); $value = str_replace( ' ', "\n", -100 ); $value = str_replace( ' ', "\n", 100.25 );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EGTX0
function name:  (null)
number of ops:  16
compiled vars:  !0 = $value
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   FRAMELESS_ICALL_3                str_replace         ~1      '+', '%0A'
          1        OP_DATA                                                      'abc+efg+hij'
          2        ASSIGN                                                       !0, ~1
    4     3        FRAMELESS_ICALL_3                str_replace         ~3      '+', '%0A'
          4        OP_DATA                                                      <array>
          5        ASSIGN                                                       !0, ~3
    7     6        FRAMELESS_ICALL_3                str_replace         ~5      '+', '%0A'
          7        OP_DATA                                                      <false>
          8        ASSIGN                                                       !0, ~5
    8     9        FRAMELESS_ICALL_3                str_replace         ~7      '+', '%0A'
         10        OP_DATA                                                      -100
         11        ASSIGN                                                       !0, ~7
    9    12        FRAMELESS_ICALL_3                str_replace         ~9      '+', '%0A'
         13        OP_DATA                                                      100.25
         14        ASSIGN                                                       !0, ~9
         15      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
164.02 ms | 1965 KiB | 13 Q