3v4l.org

run code in 300+ 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:  31
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'str_replace'
          1        SEND_VAL                                                 '+'
          2        SEND_VAL                                                 '%0A'
          3        SEND_VAL                                                 'abc+efg+hij'
          4        DO_ICALL                                         $1      
          5        ASSIGN                                                   !0, $1
    4     6        INIT_FCALL                                               'str_replace'
          7        SEND_VAL                                                 '+'
          8        SEND_VAL                                                 '%0A'
          9        SEND_VAL                                                 <array>
         10        DO_ICALL                                         $3      
         11        ASSIGN                                                   !0, $3
    7    12        INIT_FCALL                                               'str_replace'
         13        SEND_VAL                                                 '+'
         14        SEND_VAL                                                 '%0A'
         15        SEND_VAL                                                 <false>
         16        DO_ICALL                                         $5      
         17        ASSIGN                                                   !0, $5
    8    18        INIT_FCALL                                               'str_replace'
         19        SEND_VAL                                                 '+'
         20        SEND_VAL                                                 '%0A'
         21        SEND_VAL                                                 -100
         22        DO_ICALL                                         $7      
         23        ASSIGN                                                   !0, $7
    9    24        INIT_FCALL                                               'str_replace'
         25        SEND_VAL                                                 '+'
         26        SEND_VAL                                                 '%0A'
         27        SEND_VAL                                                 100.25
         28        DO_ICALL                                         $9      
         29        ASSIGN                                                   !0, $9
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
191.25 ms | 1451 KiB | 14 Q