3v4l.org

run code in 300+ PHP versions simultaneously
<?php $detect = array('ASCII', 'Windows-1252', 'UTF-8', 'ISO-8859-15'); $num_before = null; $det_before = null; for ($num = 0; $num < 256; $num++) { $char = chr($num); $det = mb_detect_encoding($char, $detect, true); if ($det_before !== null) { if ($det !== $det_before) { printf("0x%02x - 0x%02x: %s\n", $num_before, $num - 1, $det_before); $det_before = $det; $num_before = $num; } } else { $det_before = $det; $num_before = $num; } } printf("0x%02x - 0x%02x: %s\n", $num_before, $num - 1, $det);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 32
Branch analysis from position: 32
2 jumps found. (Code = 44) Position 1 = 34, Position 2 = 5
Branch analysis from position: 34
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 29
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 28
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
2 jumps found. (Code = 44) Position 1 = 34, Position 2 = 5
Branch analysis from position: 34
Branch analysis from position: 5
Branch analysis from position: 28
Branch analysis from position: 29
2 jumps found. (Code = 44) Position 1 = 34, Position 2 = 5
Branch analysis from position: 34
Branch analysis from position: 5
filename:       /in/9MHpt
function name:  (null)
number of ops:  42
compiled vars:  !0 = $detect, !1 = $num_before, !2 = $det_before, !3 = $num, !4 = $char, !5 = $det
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN                                                   !1, null
    6     2        ASSIGN                                                   !2, null
    7     3        ASSIGN                                                   !3, 0
          4      > JMP                                                      ->32
    8     5    >   INIT_FCALL                                               'chr'
          6        SEND_VAR                                                 !3
          7        DO_ICALL                                         $10     
          8        ASSIGN                                                   !4, $10
    9     9        INIT_FCALL                                               'mb_detect_encoding'
         10        SEND_VAR                                                 !4
         11        SEND_VAR                                                 !0
         12        SEND_VAL                                                 <true>
         13        DO_ICALL                                         $12     
         14        ASSIGN                                                   !5, $12
   10    15        TYPE_CHECK                                  1020          !2
         16      > JMPZ                                                     ~14, ->29
   11    17    >   IS_NOT_IDENTICAL                                         !5, !2
         18      > JMPZ                                                     ~15, ->28
   12    19    >   INIT_FCALL                                               'printf'
         20        SEND_VAL                                                 '0x%2502x+-+0x%2502x%3A+%25s%0A'
         21        SEND_VAR                                                 !1
         22        SUB                                              ~16     !3, 1
         23        SEND_VAL                                                 ~16
         24        SEND_VAR                                                 !2
         25        DO_ICALL                                                 
   13    26        ASSIGN                                                   !2, !5
         27        ASSIGN                                                   !1, !3
         28    > > JMP                                                      ->31
   16    29    >   ASSIGN                                                   !2, !5
         30        ASSIGN                                                   !1, !3
    7    31    >   PRE_INC                                                  !3
         32    >   IS_SMALLER                                               !3, 256
         33      > JMPNZ                                                    ~23, ->5
   19    34    >   INIT_FCALL                                               'printf'
         35        SEND_VAL                                                 '0x%2502x+-+0x%2502x%3A+%25s%0A'
         36        SEND_VAR                                                 !1
         37        SUB                                              ~24     !3, 1
         38        SEND_VAL                                                 ~24
         39        SEND_VAR                                                 !5
         40        DO_ICALL                                                 
         41      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.05 ms | 1400 KiB | 19 Q