3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s="ó12345678\r\n1234\n;"; //$s=utf8_encode("ó12345678\r\n1234\n;") 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/K2ggR
function name:  (null)
number of ops:  24
compiled vars:  !0 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%C3%B312345678%0D%0A1234%0A%3B'
    4     1        INIT_FCALL                                               'print_r'
          2        INIT_FCALL                                               'mb_detect_encoding'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        CONCAT                                           ~3      $2, '%0A'
          6        SEND_VAL                                                 ~3
          7        DO_ICALL                                                 
    5     8        INIT_FCALL                                               'print_r'
          9        INIT_FCALL                                               'mb_strlen'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $5      
         12        CONCAT                                           ~6      $5, '%0A'
         13        SEND_VAL                                                 ~6
         14        DO_ICALL                                                 
    6    15        INIT_FCALL                                               'print_r'
         16        INIT_FCALL                                               'mb_strpos'
         17        SEND_VAR                                                 !0
         18        SEND_VAL                                                 '%3B'
         19        DO_ICALL                                         $8      
         20        CONCAT                                           ~9      $8, '%0A'
         21        SEND_VAL                                                 ~9
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.36 ms | 1395 KiB | 21 Q