3v4l.org

run code in 300+ PHP versions simultaneously
<?php $utf8_to_iso8859_1_translation_table = array( ); $utf8_to_iso8859_1_translation_table2 = array( ); for( $a = 0; $a<256; $a++ ) { $iso_8859_1 = mb_convert_encoding( "&#$a;" , 'ISO-8859-1' , 'HTML-ENTITIES' ); $utf8 = mb_convert_encoding( $iso_8859_1 , 'UTF-8' , 'ISO-8859-1' ); //$utf8 = utf8_encode( $iso_8859_1 ); $xutf8 = ( isset( $utf8[0] ) ? ( '\x' . dechex( ord( $utf8[0] ) ) . ( isset( $utf8[1] ) ? '\x' . dechex( ord( $utf8[1] ) ) . ( isset( $utf8[2] ) ? '\x' . dechex( ord( $utf8[2] ) ) : '' ) : '' ) ) : '' ); $xiso = ( isset( $iso_8859_1[0] ) ? ( '\x' . dechex( ord( $iso_8859_1[0] ) ) . ( isset( $iso_8859_1[1] ) ? '\x' . dechex( ord( $iso_8859_1[1] ) ) : '' ) ) : '' ); $utf8_to_iso8859_1_translation_table[$xutf8] = $xiso;// . ' ' . $a; $utf8_to_iso8859_1_translation_table2[$utf8] = $iso_8859_1;// . ' ' . $a; } //print_r( $utf8_to_iso8859_1_translation_table ); print_r( $utf8_to_iso8859_1_translation_table2 ); die;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 94
Branch analysis from position: 94
2 jumps found. (Code = 44) Position 1 = 96, Position 2 = 4
Branch analysis from position: 96
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 59
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 31, Position 2 = 55
Branch analysis from position: 31
2 jumps found. (Code = 43) Position 1 = 41, Position 2 = 51
Branch analysis from position: 41
1 jumps found. (Code = 42) Position 1 = 52
Branch analysis from position: 52
1 jumps found. (Code = 42) Position 1 = 56
Branch analysis from position: 56
1 jumps found. (Code = 42) Position 1 = 60
Branch analysis from position: 60
2 jumps found. (Code = 43) Position 1 = 63, Position 2 = 87
Branch analysis from position: 63
2 jumps found. (Code = 43) Position 1 = 73, Position 2 = 83
Branch analysis from position: 73
1 jumps found. (Code = 42) Position 1 = 84
Branch analysis from position: 84
1 jumps found. (Code = 42) Position 1 = 88
Branch analysis from position: 88
2 jumps found. (Code = 44) Position 1 = 96, Position 2 = 4
Branch analysis from position: 96
Branch analysis from position: 4
Branch analysis from position: 83
1 jumps found. (Code = 42) Position 1 = 88
Branch analysis from position: 88
Branch analysis from position: 87
2 jumps found. (Code = 44) Position 1 = 96, Position 2 = 4
Branch analysis from position: 96
Branch analysis from position: 4
Branch analysis from position: 51
1 jumps found. (Code = 42) Position 1 = 56
Branch analysis from position: 56
Branch analysis from position: 55
1 jumps found. (Code = 42) Position 1 = 60
Branch analysis from position: 60
Branch analysis from position: 59
2 jumps found. (Code = 43) Position 1 = 63, Position 2 = 87
Branch analysis from position: 63
Branch analysis from position: 87
filename:       /in/PIPPV
function name:  (null)
number of ops:  101
compiled vars:  !0 = $utf8_to_iso8859_1_translation_table, !1 = $utf8_to_iso8859_1_translation_table2, !2 = $a, !3 = $iso_8859_1, !4 = $utf8, !5 = $xutf8, !6 = $xiso
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
    6     1        ASSIGN                                                   !1, <array>
    8     2        ASSIGN                                                   !2, 0
          3      > JMP                                                      ->94
   10     4    >   INIT_FCALL                                               'mb_convert_encoding'
          5        ROPE_INIT                                     3  ~11     '%26%23'
          6        ROPE_ADD                                      1  ~11     ~11, !2
          7        ROPE_END                                      2  ~10     ~11, '%3B'
          8        SEND_VAL                                                 ~10
          9        SEND_VAL                                                 'ISO-8859-1'
         10        SEND_VAL                                                 'HTML-ENTITIES'
         11        DO_ICALL                                         $13     
         12        ASSIGN                                                   !3, $13
   12    13        INIT_FCALL                                               'mb_convert_encoding'
         14        SEND_VAR                                                 !3
         15        SEND_VAL                                                 'UTF-8'
         16        SEND_VAL                                                 'ISO-8859-1'
         17        DO_ICALL                                         $15     
         18        ASSIGN                                                   !4, $15
   17    19        ISSET_ISEMPTY_DIM_OBJ                         0          !4, 0
         20      > JMPZ                                                     ~17, ->59
         21    >   INIT_FCALL                                               'dechex'
         22        INIT_FCALL                                               'ord'
         23        FETCH_DIM_R                                      ~18     !4, 0
         24        SEND_VAL                                                 ~18
         25        DO_ICALL                                         $19     
         26        SEND_VAR                                                 $19
         27        DO_ICALL                                         $20     
         28        CONCAT                                           ~21     '%5Cx', $20
         29        ISSET_ISEMPTY_DIM_OBJ                         0          !4, 1
         30      > JMPZ                                                     ~22, ->55
         31    >   INIT_FCALL                                               'dechex'
         32        INIT_FCALL                                               'ord'
         33        FETCH_DIM_R                                      ~23     !4, 1
         34        SEND_VAL                                                 ~23
         35        DO_ICALL                                         $24     
         36        SEND_VAR                                                 $24
         37        DO_ICALL                                         $25     
         38        CONCAT                                           ~26     '%5Cx', $25
         39        ISSET_ISEMPTY_DIM_OBJ                         0          !4, 2
         40      > JMPZ                                                     ~27, ->51
         41    >   INIT_FCALL                                               'dechex'
         42        INIT_FCALL                                               'ord'
         43        FETCH_DIM_R                                      ~28     !4, 2
         44        SEND_VAL                                                 ~28
         45        DO_ICALL                                         $29     
         46        SEND_VAR                                                 $29
         47        DO_ICALL                                         $30     
         48        CONCAT                                           ~31     '%5Cx', $30
         49        QM_ASSIGN                                        ~32     ~31
         50      > JMP                                                      ->52
         51    >   QM_ASSIGN                                        ~32     ''
         52    >   CONCAT                                           ~33     ~26, ~32
         53        QM_ASSIGN                                        ~34     ~33
         54      > JMP                                                      ->56
         55    >   QM_ASSIGN                                        ~34     ''
         56    >   CONCAT                                           ~35     ~21, ~34
         57        QM_ASSIGN                                        ~36     ~35
         58      > JMP                                                      ->60
         59    >   QM_ASSIGN                                        ~36     ''
         60    >   ASSIGN                                                   !5, ~36
   19    61        ISSET_ISEMPTY_DIM_OBJ                         0          !3, 0
         62      > JMPZ                                                     ~38, ->87
         63    >   INIT_FCALL                                               'dechex'
         64        INIT_FCALL                                               'ord'
         65        FETCH_DIM_R                                      ~39     !3, 0
         66        SEND_VAL                                                 ~39
         67        DO_ICALL                                         $40     
         68        SEND_VAR                                                 $40
         69        DO_ICALL                                         $41     
         70        CONCAT                                           ~42     '%5Cx', $41
         71        ISSET_ISEMPTY_DIM_OBJ                         0          !3, 1
         72      > JMPZ                                                     ~43, ->83
         73    >   INIT_FCALL                                               'dechex'
         74        INIT_FCALL                                               'ord'
         75        FETCH_DIM_R                                      ~44     !3, 1
         76        SEND_VAL                                                 ~44
         77        DO_ICALL                                         $45     
         78        SEND_VAR                                                 $45
         79        DO_ICALL                                         $46     
         80        CONCAT                                           ~47     '%5Cx', $46
         81        QM_ASSIGN                                        ~48     ~47
         82      > JMP                                                      ->84
         83    >   QM_ASSIGN                                        ~48     ''
         84    >   CONCAT                                           ~49     ~42, ~48
         85        QM_ASSIGN                                        ~50     ~49
         86      > JMP                                                      ->88
         87    >   QM_ASSIGN                                        ~50     ''
         88    >   ASSIGN                                                   !6, ~50
   21    89        ASSIGN_DIM                                               !0, !5
         90        OP_DATA                                                  !6
   22    91        ASSIGN_DIM                                               !1, !4
         92        OP_DATA                                                  !3
    8    93        PRE_INC                                                  !2
         94    >   IS_SMALLER                                               !2, 256
         95      > JMPNZ                                                    ~55, ->4
   26    96    >   INIT_FCALL                                               'print_r'
         97        SEND_VAR                                                 !1
         98        DO_ICALL                                                 
   27    99      > EXIT                                                     
        100*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.47 ms | 1404 KiB | 21 Q