3v4l.org

run code in 300+ PHP versions simultaneously
<?PHP foreach (range(1, 1000) as $c) { $s = utf8_decode(mysql_real_escape_string(utf8_encode(chr($c)))); if ($s == "'") { echo "The character code is $c".PHP_EOL; break; } } echo "Failed"; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 27
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 27
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 26
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 27
Branch analysis from position: 27
filename:       /in/HPHIu
function name:  (null)
number of ops:  30
compiled vars:  !0 = $c, !1 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 1
          2        SEND_VAL                                                 1000
          3        DO_ICALL                                         $2      
          4      > FE_RESET_R                                       $3      $2, ->27
          5    > > FE_FETCH_R                                               $3, !0, ->27
    4     6    >   INIT_FCALL                                               'utf8_decode'
          7        INIT_FCALL_BY_NAME                                       'mysql_real_escape_string'
          8        INIT_FCALL                                               'utf8_encode'
          9        INIT_FCALL                                               'chr'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $4      
         12        SEND_VAR                                                 $4
         13        DO_ICALL                                         $5      
         14        SEND_VAR_NO_REF_EX                                       $5
         15        DO_FCALL                                      0  $6      
         16        SEND_VAR                                                 $6
         17        DO_ICALL                                         $7      
         18        ASSIGN                                                   !1, $7
    5    19        IS_EQUAL                                                 !1, '%27'
         20      > JMPZ                                                     ~9, ->26
    6    21    >   NOP                                                      
         22        FAST_CONCAT                                      ~10     'The+character+code+is+', !0
         23        CONCAT                                           ~11     ~10, '%0A'
         24        ECHO                                                     ~11
    7    25      > JMP                                                      ->27
    3    26    > > JMP                                                      ->5
         27    >   FE_FREE                                                  $3
   10    28        ECHO                                                     'Failed'
   12    29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.45 ms | 1396 KiB | 21 Q