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 = ( '\x' . dechex( ord( $utf8[0] ) ) . ( isset( $utf8[1] ) ? '\x' . dechex( ord( $utf8[1] ) ) . ( isset( $utf8[2] ) ? '\x' . dechex( ord( $utf8[2] ) ) : '' ) : '' ) ); $xiso = ( '\x' . dechex( ord( $iso_8859_1[0] ) ) . ( isset( $iso_8859_1[1] ) ? '\x' . dechex( ord( $utf8[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 = 84
Branch analysis from position: 84
2 jumps found. (Code = 44) Position 1 = 86, Position 2 = 4
Branch analysis from position: 86
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 53
Branch analysis from position: 29
2 jumps found. (Code = 43) Position 1 = 39, Position 2 = 49
Branch analysis from position: 39
1 jumps found. (Code = 42) Position 1 = 50
Branch analysis from position: 50
1 jumps found. (Code = 42) Position 1 = 54
Branch analysis from position: 54
2 jumps found. (Code = 43) Position 1 = 66, Position 2 = 76
Branch analysis from position: 66
1 jumps found. (Code = 42) Position 1 = 77
Branch analysis from position: 77
2 jumps found. (Code = 44) Position 1 = 86, Position 2 = 4
Branch analysis from position: 86
Branch analysis from position: 4
Branch analysis from position: 76
2 jumps found. (Code = 44) Position 1 = 86, Position 2 = 4
Branch analysis from position: 86
Branch analysis from position: 4
Branch analysis from position: 49
1 jumps found. (Code = 42) Position 1 = 54
Branch analysis from position: 54
Branch analysis from position: 53
2 jumps found. (Code = 43) Position 1 = 66, Position 2 = 76
Branch analysis from position: 66
Branch analysis from position: 76
filename:       /in/T7s09
function name:  (null)
number of ops:  91
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                                                      ->84
   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
   16    19        INIT_FCALL                                               'dechex'
         20        INIT_FCALL                                               'ord'
         21        FETCH_DIM_R                                      ~17     !4, 0
         22        SEND_VAL                                                 ~17
         23        DO_ICALL                                         $18     
         24        SEND_VAR                                                 $18
         25        DO_ICALL                                         $19     
         26        CONCAT                                           ~20     '%5Cx', $19
         27        ISSET_ISEMPTY_DIM_OBJ                         0          !4, 1
         28      > JMPZ                                                     ~21, ->53
         29    >   INIT_FCALL                                               'dechex'
         30        INIT_FCALL                                               'ord'
         31        FETCH_DIM_R                                      ~22     !4, 1
         32        SEND_VAL                                                 ~22
         33        DO_ICALL                                         $23     
         34        SEND_VAR                                                 $23
         35        DO_ICALL                                         $24     
         36        CONCAT                                           ~25     '%5Cx', $24
         37        ISSET_ISEMPTY_DIM_OBJ                         0          !4, 2
         38      > JMPZ                                                     ~26, ->49
         39    >   INIT_FCALL                                               'dechex'
         40        INIT_FCALL                                               'ord'
         41        FETCH_DIM_R                                      ~27     !4, 2
         42        SEND_VAL                                                 ~27
         43        DO_ICALL                                         $28     
         44        SEND_VAR                                                 $28
         45        DO_ICALL                                         $29     
         46        CONCAT                                           ~30     '%5Cx', $29
         47        QM_ASSIGN                                        ~31     ~30
         48      > JMP                                                      ->50
         49    >   QM_ASSIGN                                        ~31     ''
         50    >   CONCAT                                           ~32     ~25, ~31
         51        QM_ASSIGN                                        ~33     ~32
         52      > JMP                                                      ->54
         53    >   QM_ASSIGN                                        ~33     ''
         54    >   CONCAT                                           ~34     ~20, ~33
         55        ASSIGN                                                   !5, ~34
   18    56        INIT_FCALL                                               'dechex'
         57        INIT_FCALL                                               'ord'
         58        FETCH_DIM_R                                      ~36     !3, 0
         59        SEND_VAL                                                 ~36
         60        DO_ICALL                                         $37     
         61        SEND_VAR                                                 $37
         62        DO_ICALL                                         $38     
         63        CONCAT                                           ~39     '%5Cx', $38
         64        ISSET_ISEMPTY_DIM_OBJ                         0          !3, 1
         65      > JMPZ                                                     ~40, ->76
         66    >   INIT_FCALL                                               'dechex'
         67        INIT_FCALL                                               'ord'
         68        FETCH_DIM_R                                      ~41     !4, 1
         69        SEND_VAL                                                 ~41
         70        DO_ICALL                                         $42     
         71        SEND_VAR                                                 $42
         72        DO_ICALL                                         $43     
         73        CONCAT                                           ~44     '%5Cx', $43
         74        QM_ASSIGN                                        ~45     ~44
         75      > JMP                                                      ->77
         76    >   QM_ASSIGN                                        ~45     ''
         77    >   CONCAT                                           ~46     ~39, ~45
         78        ASSIGN                                                   !6, ~46
   20    79        ASSIGN_DIM                                               !0, !5
         80        OP_DATA                                                  !6
   21    81        ASSIGN_DIM                                               !1, !4
         82        OP_DATA                                                  !3
    8    83        PRE_INC                                                  !2
         84    >   IS_SMALLER                                               !2, 256
         85      > JMPNZ                                                    ~51, ->4
   25    86    >   INIT_FCALL                                               'print_r'
         87        SEND_VAR                                                 !1
         88        DO_ICALL                                                 
   26    89      > EXIT                                                     
         90*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.3 ms | 1404 KiB | 21 Q