3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.05 ms | 1395 KiB | 15 Q