3v4l.org

run code in 300+ PHP versions simultaneously
<?php Echo substr_replace('abcd', 'x', 1, -3); //axbcd Echo substr_replace('abcd', 'x', 1, 0); //axbcd
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7jPXl
function name:  (null)
number of ops:  15
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'substr_replace'
          1        SEND_VAL                                                 'abcd'
          2        SEND_VAL                                                 'x'
          3        SEND_VAL                                                 1
          4        SEND_VAL                                                 -3
          5        DO_ICALL                                         $0      
          6        ECHO                                                     $0
    5     7        INIT_FCALL                                               'substr_replace'
          8        SEND_VAL                                                 'abcd'
          9        SEND_VAL                                                 'x'
         10        SEND_VAL                                                 1
         11        SEND_VAL                                                 0
         12        DO_ICALL                                         $1      
         13        ECHO                                                     $1
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.46 ms | 1394 KiB | 15 Q