3v4l.org

run code in 300+ PHP versions simultaneously
<?php $texta = "この値段は、\500ですが、なにか問題でも"; if(strstr($texta,"\\")){ $texta = str_replace("\\","\\\\",$texta); } print $texta;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 12
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/3rRk5
function name:  (null)
number of ops:  14
compiled vars:  !0 = $texta
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%E3%81%93%E3%81%AE%E5%80%A4%E6%AE%B5%E3%81%AF%E3%80%81%5C%EF%BC%95%EF%BC%90%EF%BC%90%E3%81%A7%E3%81%99%E3%81%8C%E3%80%81%E3%81%AA%E3%81%AB%E3%81%8B%E5%95%8F%E9%A1%8C%E3%81%A7%E3%82%82'
    4     1        INIT_FCALL                                               'strstr'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '%5C'
          4        DO_ICALL                                         $2      
          5      > JMPZ                                                     $2, ->12
    5     6    >   INIT_FCALL                                               'str_replace'
          7        SEND_VAL                                                 '%5C'
          8        SEND_VAL                                                 '%5C%5C'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $3      
         11        ASSIGN                                                   !0, $3
    8    12    >   ECHO                                                     !0
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.83 ms | 1394 KiB | 17 Q