3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ss = "\u{DF}"; var_dump(utf8_decode(addslashes("\xf0\xc0\xc0\xa7 or 1=1-- -"))); $tests = array( "\x41\xC2\x3E\x42", "\xE3\x80\x22", "\x41\x98\xBA\x42\xE2\x98\x43\xE2\x98\xBA\xE2\x98", ); foreach ($tests as $t) { var_dump(bin2hex(utf8_decode($t))); } echo "Done.\n";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 23
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 23
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/ciMRU
function name:  (null)
number of ops:  26
compiled vars:  !0 = $ss, !1 = $tests, !2 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%C3%9F'
    4     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'utf8_decode'
          3        INIT_FCALL                                               'addslashes'
          4        SEND_VAL                                                 '%F0%C0%C0%A7+or+1%3D1--+-'
          5        DO_ICALL                                         $4      
          6        SEND_VAR                                                 $4
          7        DO_ICALL                                         $5      
          8        SEND_VAR                                                 $5
          9        DO_ICALL                                                 
    6    10        ASSIGN                                                   !1, <array>
   11    11      > FE_RESET_R                                       $8      !1, ->23
         12    > > FE_FETCH_R                                               $8, !2, ->23
   12    13    >   INIT_FCALL                                               'var_dump'
         14        INIT_FCALL                                               'bin2hex'
         15        INIT_FCALL                                               'utf8_decode'
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                         $9      
         18        SEND_VAR                                                 $9
         19        DO_ICALL                                         $10     
         20        SEND_VAR                                                 $10
         21        DO_ICALL                                                 
   11    22      > JMP                                                      ->12
         23    >   FE_FREE                                                  $8
   14    24        ECHO                                                     'Done.%0A'
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.98 ms | 1395 KiB | 21 Q