3v4l.org

run code in 300+ PHP versions simultaneously
<?php $count = 10000; $string = 'sdfhksdhfsdfhjskfhsdfhs_kshfksdhfksdhfsjkd_kjsdfhksdfhjsdfhsdj_jsdfhkshfj'; for ($i = 0; $i < $count; $i++) { str_replace('_', ' ', $string); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 4
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 4
Branch analysis from position: 12
Branch analysis from position: 4
filename:       /in/k2h1e
function name:  (null)
number of ops:  13
compiled vars:  !0 = $count, !1 = $string, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 10000
    4     1        ASSIGN                                                   !1, 'sdfhksdhfsdfhjskfhsdfhs_kshfksdhfksdhfsjkd_kjsdfhksdfhjsdfhsdj_jsdfhkshfj'
    6     2        ASSIGN                                                   !2, 0
          3      > JMP                                                      ->10
    7     4    >   INIT_FCALL                                               'str_replace'
          5        SEND_VAL                                                 '_'
          6        SEND_VAL                                                 '+'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
    6     9        PRE_INC                                                  !2
         10    >   IS_SMALLER                                               !2, !0
         11      > JMPNZ                                                    ~8, ->4
    8    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.27 ms | 1394 KiB | 15 Q