3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); $bytes32 = [144, 204, 205, 119, 77, 176, 172, 140, 110, 162, 222, 255, 14, 38, 252, 82, 118, 138, 130, 124, 145, 199, 55, 162, 224, 80, 102, 141, 140, 57, 194, 36]; $string32 = \pack('C*', ...$bytes32); $string32Utf8 = \mb_convert_encoding($string32, 'ASCII', 'UTF-8'); $bytes70 = [239, 191, 189, 239, 191, 189, 239, 191, 189, 119, 77, 239, 191, 189, 239, 191, 189, 239, 191, 189, 110, 239, 191, 189, 239, 191, 189, 239, 191, 189, 14, 38, 239, 191, 189, 82, 118, 239, 191, 189, 239, 191, 189, 124, 239, 191, 189, 239, 191, 189, 55, 239, 191, 189, 239, 191, 189, 80, 102, 239, 191, 189, 239, 191, 189, 57, 239, 191, 189, 36]; $string70 = \pack('C*', ...$bytes70); $string70Utf8 = \mb_convert_encoding($string70, 'ASCII', 'UTF-8'); \var_dump($string32Utf8, $string70Utf8, $string32Utf8 === $string70Utf8);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/je8gf
function name:  (null)
number of ops:  33
compiled vars:  !0 = $bytes32, !1 = $string32, !2 = $string32Utf8, !3 = $bytes70, !4 = $string70, !5 = $string70Utf8
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'pack'
          2        SEND_VAL                                                 'C%2A'
          3        SEND_UNPACK                                              !0
          4        CHECK_UNDEF_ARGS                                         
          5        DO_ICALL                                         $7      
          6        ASSIGN                                                   !1, $7
    5     7        INIT_FCALL                                               'mb_convert_encoding'
          8        SEND_VAR                                                 !1
          9        SEND_VAL                                                 'ASCII'
         10        SEND_VAL                                                 'UTF-8'
         11        DO_ICALL                                         $9      
         12        ASSIGN                                                   !2, $9
    7    13        ASSIGN                                                   !3, <array>
    8    14        INIT_FCALL                                               'pack'
         15        SEND_VAL                                                 'C%2A'
         16        SEND_UNPACK                                              !3
         17        CHECK_UNDEF_ARGS                                         
         18        DO_ICALL                                         $12     
         19        ASSIGN                                                   !4, $12
    9    20        INIT_FCALL                                               'mb_convert_encoding'
         21        SEND_VAR                                                 !4
         22        SEND_VAL                                                 'ASCII'
         23        SEND_VAL                                                 'UTF-8'
         24        DO_ICALL                                         $14     
         25        ASSIGN                                                   !5, $14
   11    26        INIT_FCALL                                               'var_dump'
         27        SEND_VAR                                                 !2
         28        SEND_VAR                                                 !5
         29        IS_IDENTICAL                                     ~16     !2, !5
         30        SEND_VAL                                                 ~16
         31        DO_ICALL                                                 
         32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.3 ms | 1396 KiB | 19 Q