3v4l.org

run code in 300+ PHP versions simultaneously
<?php function stripcslashes_map($val) { if (is_array($val)) { $val = array_map(__FUNCTION__, $val); } else { $val = stripslashes($val); } return $val; } $x=array('name'=>"\'qwert\'"); $httpQuery=http_build_query(array_map('stripcslashes_map', $x)); echo $httpQuery;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IeKGt
function name:  (null)
number of ops:  11
compiled vars:  !0 = $x, !1 = $httpQuery
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   ASSIGN                                                   !0, <array>
   17     1        INIT_FCALL                                               'http_build_query'
          2        INIT_FCALL                                               'array_map'
          3        SEND_VAL                                                 'stripcslashes_map'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        SEND_VAR                                                 $3
          7        DO_ICALL                                         $4      
          8        ASSIGN                                                   !1, $4
   18     9        ECHO                                                     !1
         10      > RETURN                                                   1

Function stripcslashes_map:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 9
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IeKGt
function name:  stripcslashes_map
number of ops:  15
compiled vars:  !0 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    7     1        TYPE_CHECK                                  128          !0
          2      > JMPZ                                                     ~1, ->9
    8     3    >   INIT_FCALL                                               'array_map'
          4        SEND_VAL                                                 'stripcslashes_map'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $2      
          7        ASSIGN                                                   !0, $2
          8      > JMP                                                      ->13
   10     9    >   INIT_FCALL                                               'stripslashes'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $4      
         12        ASSIGN                                                   !0, $4
   12    13    > > RETURN                                                   !0
   13    14*     > RETURN                                                   null

End of function stripcslashes_map

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.93 ms | 1396 KiB | 19 Q