3v4l.org

run code in 300+ PHP versions simultaneously
<?php mb_regex_encoding('UTF-8'); mb_internal_encoding("UTF-8"); $s="ó12345678\r\n1234\n;"; //$s=utf8_encode("ó12345678\r\n1234\n;") // "ó12345678rn1234n;" // 012345678901234567890 print_r(mb_detect_encoding($s)."\n"); print_r(mb_strlen($s)."\n"); print_r(mb_strpos($s,';')."\n");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OPFBE
function name:  (null)
number of ops:  30
compiled vars:  !0 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'mb_regex_encoding'
          1        SEND_VAL                                                 'UTF-8'
          2        DO_ICALL                                                 
    3     3        INIT_FCALL                                               'mb_internal_encoding'
          4        SEND_VAL                                                 'UTF-8'
          5        DO_ICALL                                                 
    5     6        ASSIGN                                                   !0, '%C3%B312345678%0D%0A1234%0A%3B'
    9     7        INIT_FCALL                                               'print_r'
          8        INIT_FCALL                                               'mb_detect_encoding'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $4      
         11        CONCAT                                           ~5      $4, '%0A'
         12        SEND_VAL                                                 ~5
         13        DO_ICALL                                                 
   10    14        INIT_FCALL                                               'print_r'
         15        INIT_FCALL                                               'mb_strlen'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                         $7      
         18        CONCAT                                           ~8      $7, '%0A'
         19        SEND_VAL                                                 ~8
         20        DO_ICALL                                                 
   11    21        INIT_FCALL                                               'print_r'
         22        INIT_FCALL                                               'mb_strpos'
         23        SEND_VAR                                                 !0
         24        SEND_VAL                                                 '%3B'
         25        DO_ICALL                                         $10     
         26        CONCAT                                           ~11     $10, '%0A'
         27        SEND_VAL                                                 ~11
         28        DO_ICALL                                                 
         29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.28 ms | 1395 KiB | 25 Q