3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.25 ms | 1394 KiB | 17 Q