3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "ryat\\\hi"; //var_dump($str); //$str = addslashes($str); //var_dump($str); file_put_contents('/tmp/ryat', addslashes($str)); var_dump(stripslashes(file_get_contents('/tmp/ryat')));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9hBpj
function name:  (null)
number of ops:  18
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'ryat%5C%5Chi'
    7     1        INIT_FCALL                                               'file_put_contents'
          2        SEND_VAL                                                 '%2Ftmp%2Fryat'
          3        INIT_FCALL                                               'addslashes'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                                 
    8     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'stripslashes'
         10        INIT_FCALL                                               'file_get_contents'
         11        SEND_VAL                                                 '%2Ftmp%2Fryat'
         12        DO_ICALL                                         $4      
         13        SEND_VAR                                                 $4
         14        DO_ICALL                                         $5      
         15        SEND_VAR                                                 $5
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.12 ms | 1386 KiB | 23 Q