3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sentence = "Maria went to London where he met Peter with his family."; $clean = str_replace(' he ', ' she ', substr($sentence, 0, 34)); $clean .= substr($sentence, 34); echo $clean;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Zn0XS
function name:  (null)
number of ops:  19
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                                               'str_replace'
          2        SEND_VAL                                                 '+he+'
          3        SEND_VAL                                                 '+she+'
          4        INIT_FCALL                                               'substr'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 0
          7        SEND_VAL                                                 34
          8        DO_ICALL                                         $3      
          9        SEND_VAR                                                 $3
         10        DO_ICALL                                         $4      
         11        ASSIGN                                                   !1, $4
    5    12        INIT_FCALL                                               'substr'
         13        SEND_VAR                                                 !0
         14        SEND_VAL                                                 34
         15        DO_ICALL                                         $6      
         16        ASSIGN_OP                                     8          !1, $6
    6    17        ECHO                                                     !1
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.11 ms | 1386 KiB | 17 Q