3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo 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/gfACD
function name:  (null)
number of ops:  34
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        ECHO                                                     $2
    3     3        ASSIGN                                                   !0, '%27%22'
    4     4        ASSIGN                                                   !1, <array>
    5     5        CONCAT                                           ~6      'string+%3A+', !0
          6        ASSIGN_DIM                                               !1
          7        OP_DATA                                                  ~6
    6     8        INIT_FCALL                                               'addslashes'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $8      
         11        CONCAT                                           ~9      'addslashes+%3A+', $8
         12        ASSIGN_DIM                                               !1
         13        OP_DATA                                                  ~9
    7    14        INIT_FCALL                                               'stripslashes'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $11     
         17        CONCAT                                           ~12     'stripslashes+%3A+', $11
         18        ASSIGN_DIM                                               !1
         19        OP_DATA                                                  ~12
    8    20        INIT_FCALL                                               'htmlentities'
         21        SEND_VAR                                                 !0
         22        DO_ICALL                                         $14     
         23        CONCAT                                           ~15     'htmlentities+%3A+', $14
         24        ASSIGN_DIM                                               !1
         25        OP_DATA                                                  ~15
    9    26        CONCAT                                           ~17     'testing+%3A+%27', !0
         27        CONCAT                                           ~18     ~17, '%27'
         28        ASSIGN_DIM                                               !1
         29        OP_DATA                                                  ~18
   10    30        INIT_FCALL                                               'print_r'
         31        SEND_VAR                                                 !1
         32        DO_ICALL                                                 
         33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.76 ms | 1396 KiB | 21 Q