3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "The quick blue fox jumped over the lazy dog."; $search = "blue"; $replace = "brown"; for($i = 0; $i < 1000; $i++) { echo str_replace($search, $replace, $string).PHP_EOL; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 5
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 5
Branch analysis from position: 15
Branch analysis from position: 5
filename:       /in/JL74g
function name:  (null)
number of ops:  16
compiled vars:  !0 = $string, !1 = $search, !2 = $replace, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'The+quick+blue+fox+jumped+over+the+lazy+dog.'
    3     1        ASSIGN                                                   !1, 'blue'
    4     2        ASSIGN                                                   !2, 'brown'
    6     3        ASSIGN                                                   !3, 0
          4      > JMP                                                      ->13
    8     5    >   INIT_FCALL                                               'str_replace'
          6        SEND_VAR                                                 !1
          7        SEND_VAR                                                 !2
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $8      
         10        CONCAT                                           ~9      $8, '%0A'
         11        ECHO                                                     ~9
    6    12        PRE_INC                                                  !3
         13    >   IS_SMALLER                                               !3, 1000
         14      > JMPNZ                                                    ~11, ->5
    9    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.51 ms | 1395 KiB | 15 Q