3v4l.org

run code in 300+ PHP versions simultaneously
<?php $original_string = 'The brown fox'; $string_to_insert ='quick'; $insert_pos = 4; $new_string = substr_replace($original_string, $string_to_insert.' ', $insert_pos, 0); echo $new_string; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r9nsg
function name:  (null)
number of ops:  13
compiled vars:  !0 = $original_string, !1 = $string_to_insert, !2 = $insert_pos, !3 = $new_string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'The+brown+fox'
    3     1        ASSIGN                                                   !1, 'quick'
    4     2        ASSIGN                                                   !2, 4
    5     3        INIT_FCALL                                               'substr_replace'
          4        SEND_VAR                                                 !0
          5        CONCAT                                           ~7      !1, '+'
          6        SEND_VAL                                                 ~7
          7        SEND_VAR                                                 !2
          8        SEND_VAL                                                 0
          9        DO_ICALL                                         $8      
         10        ASSIGN                                                   !3, $8
    6    11        ECHO                                                     !3
    7    12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.83 ms | 1394 KiB | 15 Q