3v4l.org

run code in 300+ PHP versions simultaneously
<?php // String with excessive backslashes manually added. // Only need the escaped newline characters ("\n") $str = "\nMilly O\'Malley wishes \\to \\e\at cake and \\not bread; see http://example.com.\n"; echo $str; $stripped = stripslashes( $str); echo $stripped;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sO0XO
function name:  (null)
number of ops:  8
compiled vars:  !0 = $str, !1 = $stripped
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                   !0, '%0AMilly+O%5C%27Malley+wishes+%5Cto+%5Ce%5Cat+cake+and+%5Cnot+bread%3B+see+http%3A%2F%2Fexample.com.%0A'
    7     1        ECHO                                                     !0
    9     2        INIT_FCALL                                               'stripslashes'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
   10     6        ECHO                                                     !1
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.13 ms | 1398 KiB | 15 Q