3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_POST = "[\'123\',\"alright1\",\"1234-1\",\"1699\",29]"; var_dump(stripslashes(json_encode($_POST))); if (get_magic_quotes_gpc() === 1) { $_GET = json_decode(stripslashes(json_encode($_GET)), true); $_POST = json_decode(stripslashes(json_encode($_POST)), true); $_COOKIE = json_decode(stripslashes(json_encode($_COOKIE)), true); $_REQUEST = json_decode(stripslashes(json_encode($_REQUEST)), true); } var_dump($_POST);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 68
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 68
filename:       /in/RDrX7
function name:  (null)
number of ops:  73
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_W                      global              $0      '_POST'
          1        ASSIGN                                                   $0, '%5B%5C%27123%5C%27%2C%22alright1%22%2C%221234-1%22%2C%221699%22%2C29%5D'
    4     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'stripslashes'
          4        INIT_FCALL                                               'json_encode'
          5        FETCH_R                      global              ~2      '_POST'
          6        SEND_VAL                                                 ~2
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        DO_ICALL                                         $4      
         10        SEND_VAR                                                 $4
         11        DO_ICALL                                                 
    6    12        INIT_FCALL_BY_NAME                                       'get_magic_quotes_gpc'
         13        DO_FCALL                                      0  $6      
         14        IS_IDENTICAL                                             $6, 1
         15      > JMPZ                                                     ~7, ->68
    7    16    >   INIT_FCALL                                               'json_decode'
         17        INIT_FCALL                                               'stripslashes'
         18        INIT_FCALL                                               'json_encode'
         19        FETCH_R                      global              ~9      '_GET'
         20        SEND_VAL                                                 ~9
         21        DO_ICALL                                         $10     
         22        SEND_VAR                                                 $10
         23        DO_ICALL                                         $11     
         24        SEND_VAR                                                 $11
         25        SEND_VAL                                                 <true>
         26        DO_ICALL                                         $12     
         27        FETCH_W                      global              $8      '_GET'
         28        ASSIGN                                                   $8, $12
    8    29        INIT_FCALL                                               'json_decode'
         30        INIT_FCALL                                               'stripslashes'
         31        INIT_FCALL                                               'json_encode'
         32        FETCH_R                      global              ~15     '_POST'
         33        SEND_VAL                                                 ~15
         34        DO_ICALL                                         $16     
         35        SEND_VAR                                                 $16
         36        DO_ICALL                                         $17     
         37        SEND_VAR                                                 $17
         38        SEND_VAL                                                 <true>
         39        DO_ICALL                                         $18     
         40        FETCH_W                      global              $14     '_POST'
         41        ASSIGN                                                   $14, $18
    9    42        INIT_FCALL                                               'json_decode'
         43        INIT_FCALL                                               'stripslashes'
         44        INIT_FCALL                                               'json_encode'
         45        FETCH_R                      global              ~21     '_COOKIE'
         46        SEND_VAL                                                 ~21
         47        DO_ICALL                                         $22     
         48        SEND_VAR                                                 $22
         49        DO_ICALL                                         $23     
         50        SEND_VAR                                                 $23
         51        SEND_VAL                                                 <true>
         52        DO_ICALL                                         $24     
         53        FETCH_W                      global              $20     '_COOKIE'
         54        ASSIGN                                                   $20, $24
   10    55        INIT_FCALL                                               'json_decode'
         56        INIT_FCALL                                               'stripslashes'
         57        INIT_FCALL                                               'json_encode'
         58        FETCH_R                      global              ~27     '_REQUEST'
         59        SEND_VAL                                                 ~27
         60        DO_ICALL                                         $28     
         61        SEND_VAR                                                 $28
         62        DO_ICALL                                         $29     
         63        SEND_VAR                                                 $29
         64        SEND_VAL                                                 <true>
         65        DO_ICALL                                         $30     
         66        FETCH_W                      global              $26     '_REQUEST'
         67        ASSIGN                                                   $26, $30
   13    68    >   INIT_FCALL                                               'var_dump'
         69        FETCH_R                      global              ~32     '_POST'
         70        SEND_VAL                                                 ~32
         71        DO_ICALL                                                 
         72      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.82 ms | 1018 KiB | 17 Q