3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html> <html> <body> <?php echo substr_replace("Hello","world",0,0); // 0 will start replacing at the first character in the string ?> </body> </html>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YuM0D
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3C%21DOCTYPE+html%3E%0A%3Chtml%3E%0A%3Cbody%3E%0A%0A'
    6     1        INIT_FCALL                                               'substr_replace'
          2        SEND_VAL                                                 'Hello'
          3        SEND_VAL                                                 'world'
          4        SEND_VAL                                                 0
          5        SEND_VAL                                                 0
          6        DO_ICALL                                         $0      
          7        ECHO                                                     $0
    8     8        ECHO                                                     '%0A%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   10     9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.83 ms | 1394 KiB | 15 Q