3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "1) ".get_magic_quotes_gpc()." >> "; echo "2) ".ini_get("magic_quotes_gpc")." >> "; $str = "'\""; $arr = array(); $arr[] = "string : ".$str; $arr[] = "addslashes : ".addslashes($str); $arr[] = "stripslashes : ".stripslashes($str); $arr[] = "htmlentities : ".htmlentities($str); $arr[] = "testing : '".$str."'"; print_r($arr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YN8gG
function name:  (null)
number of ops:  42
compiled vars:  !0 = $str, !1 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'get_magic_quotes_gpc'
          1        DO_FCALL                                      0  $2      
          2        CONCAT                                           ~3      '1%29+', $2
          3        CONCAT                                           ~4      ~3, '+%3E%3E+'
          4        ECHO                                                     ~4
    3     5        INIT_FCALL                                               'ini_get'
          6        SEND_VAL                                                 'magic_quotes_gpc'
          7        DO_ICALL                                         $5      
          8        CONCAT                                           ~6      '2%29+', $5
          9        CONCAT                                           ~7      ~6, '+%3E%3E+'
         10        ECHO                                                     ~7
    5    11        ASSIGN                                                   !0, '%27%22'
    6    12        ASSIGN                                                   !1, <array>
    7    13        CONCAT                                           ~11     'string+%3A+', !0
         14        ASSIGN_DIM                                               !1
         15        OP_DATA                                                  ~11
    8    16        INIT_FCALL                                               'addslashes'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                         $13     
         19        CONCAT                                           ~14     'addslashes+%3A+', $13
         20        ASSIGN_DIM                                               !1
         21        OP_DATA                                                  ~14
    9    22        INIT_FCALL                                               'stripslashes'
         23        SEND_VAR                                                 !0
         24        DO_ICALL                                         $16     
         25        CONCAT                                           ~17     'stripslashes+%3A+', $16
         26        ASSIGN_DIM                                               !1
         27        OP_DATA                                                  ~17
   10    28        INIT_FCALL                                               'htmlentities'
         29        SEND_VAR                                                 !0
         30        DO_ICALL                                         $19     
         31        CONCAT                                           ~20     'htmlentities+%3A+', $19
         32        ASSIGN_DIM                                               !1
         33        OP_DATA                                                  ~20
   11    34        CONCAT                                           ~22     'testing+%3A+%27', !0
         35        CONCAT                                           ~23     ~22, '%27'
         36        ASSIGN_DIM                                               !1
         37        OP_DATA                                                  ~23
   12    38        INIT_FCALL                                               'print_r'
         39        SEND_VAR                                                 !1
         40        DO_ICALL                                                 
         41      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.32 ms | 1396 KiB | 23 Q