3v4l.org

run code in 300+ PHP versions simultaneously
<?php $contents = file_get_contents("https://www.aoimorishinkin.co.jp/rone.html"); $detect_order = 'JIS, eucjp-win, sjis-win, EUC-JP, sjis, UTF-8'; $detected = mb_detect_encoding( $string, $detect_order, TRUE ); var_dump($detected);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0nVAO
function name:  (null)
number of ops:  15
compiled vars:  !0 = $contents, !1 = $detect_order, !2 = $detected, !3 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'file_get_contents'
          1        SEND_VAL                                                 'https%3A%2F%2Fwww.aoimorishinkin.co.jp%2Frone.html'
          2        DO_ICALL                                         $4      
          3        ASSIGN                                                   !0, $4
    5     4        ASSIGN                                                   !1, 'JIS%2C+eucjp-win%2C+sjis-win%2C+EUC-JP%2C+sjis%2C+UTF-8'
    7     5        INIT_FCALL                                               'mb_detect_encoding'
          6        SEND_VAR                                                 !3
          7        SEND_VAR                                                 !1
          8        SEND_VAL                                                 <true>
          9        DO_ICALL                                         $7      
         10        ASSIGN                                                   !2, $7
    9    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.25 ms | 1394 KiB | 19 Q