3v4l.org

run code in 300+ PHP versions simultaneously
<?php $argument = "ノルウェーサーモンのカルパッチョ"; var_dump(str_replace("'", "'\\'", $argument));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/I5s20
function name:  (null)
number of ops:  10
compiled vars:  !0 = $argument
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%E3%83%8E%E3%83%AB%E3%82%A6%E3%82%A7%E3%83%BC%E3%82%B5%E3%83%BC%E3%83%A2%E3%83%B3%E3%81%AE%E3%82%AB%E3%83%AB%E3%83%91%E3%83%83%E3%83%81%E3%83%A7'
    5     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'str_replace'
          3        SEND_VAL                                                 '%27'
          4        SEND_VAL                                                 '%27%5C%27'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $2      
          7        SEND_VAR                                                 $2
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.23 ms | 1385 KiB | 17 Q