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)); print_r(mb_strlen($s)); print_r(mb_strpos($s,';'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0JEX1
function name:  (null)
number of ops:  21
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        SEND_VAR                                                 $2
          6        DO_ICALL                                                 
    5     7        INIT_FCALL                                               'print_r'
          8        INIT_FCALL                                               'mb_strlen'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $4      
         11        SEND_VAR                                                 $4
         12        DO_ICALL                                                 
    6    13        INIT_FCALL                                               'print_r'
         14        INIT_FCALL                                               'mb_strpos'
         15        SEND_VAR                                                 !0
         16        SEND_VAL                                                 '%3B'
         17        DO_ICALL                                         $6      
         18        SEND_VAR                                                 $6
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.95 ms | 1399 KiB | 21 Q