3v4l.org

run code in 300+ PHP versions simultaneously
<?php $encodings = mb_list_encodings(); var_dump(count($encodings)); foreach ($encodings as $encoding) { foreach (["\r","\n"] as $string) { if (strlen($string) !== mb_strlen($string, $encoding)) { var_dump([$encoding, ord($string)]); } } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 29
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 29
Branch analysis from position: 9
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 27
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 27
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 26
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 26
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 27
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
filename:       /in/UMIlJ
function name:  (null)
number of ops:  31
compiled vars:  !0 = $encodings, !1 = $encoding, !2 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'mb_list_encodings'
          1        DO_ICALL                                         $3      
          2        ASSIGN                                                   !0, $3
    4     3        INIT_FCALL                                               'var_dump'
          4        COUNT                                            ~5      !0
          5        SEND_VAL                                                 ~5
          6        DO_ICALL                                                 
    6     7      > FE_RESET_R                                       $7      !0, ->29
          8    > > FE_FETCH_R                                               $7, !1, ->29
    7     9    > > FE_RESET_R                                       $8      <array>, ->27
         10    > > FE_FETCH_R                                               $8, !2, ->27
    8    11    >   STRLEN                                           ~9      !2
         12        INIT_FCALL                                               'mb_strlen'
         13        SEND_VAR                                                 !2
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                         $10     
         16        IS_NOT_IDENTICAL                                         $10, ~9
         17      > JMPZ                                                     ~11, ->26
    9    18    >   INIT_FCALL                                               'var_dump'
         19        INIT_ARRAY                                       ~12     !1
         20        INIT_FCALL                                               'ord'
         21        SEND_VAR                                                 !2
         22        DO_ICALL                                         $13     
         23        ADD_ARRAY_ELEMENT                                ~12     $13
         24        SEND_VAL                                                 ~12
         25        DO_ICALL                                                 
    7    26    > > JMP                                                      ->10
         27    >   FE_FREE                                                  $8
    6    28      > JMP                                                      ->8
         29    >   FE_FREE                                                  $7
   12    30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.28 ms | 1396 KiB | 21 Q