3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sentence = "Maria went to London where he met Peter with his family."; echo $clean = substr_replace($sentence, "he", "she", 0, 34);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/A3ZaQ
function name:  (null)
number of ops:  11
compiled vars:  !0 = $sentence, !1 = $clean
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Maria+went+to+London+where+he+met+Peter+with+his+family.'
    4     1        INIT_FCALL                                               'substr_replace'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'he'
          4        SEND_VAL                                                 'she'
          5        SEND_VAL                                                 0
          6        SEND_VAL                                                 34
          7        DO_ICALL                                         $3      
          8        ASSIGN                                           ~4      !1, $3
          9        ECHO                                                     ~4
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.95 ms | 1394 KiB | 15 Q