3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = "Hi Mr ["; var_dump($test); var_dump(mb_convert_encoding($test, 'UTF-7', 'UTF-8')); var_dump(mb_convert_encoding($test, 'UCS-2', 'UTF-8')); var_dump(mb_detect_encoding($test, ['UTF-7'])); var_dump(mb_detect_encoding($test));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/s2X0g
function name:  (null)
number of ops:  34
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Hi+Mr+%5B'
    5     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    6     4        INIT_FCALL                                               'var_dump'
          5        INIT_FCALL                                               'mb_convert_encoding'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 'UTF-7'
          8        SEND_VAL                                                 'UTF-8'
          9        DO_ICALL                                         $3      
         10        SEND_VAR                                                 $3
         11        DO_ICALL                                                 
    7    12        INIT_FCALL                                               'var_dump'
         13        INIT_FCALL                                               'mb_convert_encoding'
         14        SEND_VAR                                                 !0
         15        SEND_VAL                                                 'UCS-2'
         16        SEND_VAL                                                 'UTF-8'
         17        DO_ICALL                                         $5      
         18        SEND_VAR                                                 $5
         19        DO_ICALL                                                 
    8    20        INIT_FCALL                                               'var_dump'
         21        INIT_FCALL                                               'mb_detect_encoding'
         22        SEND_VAR                                                 !0
         23        SEND_VAL                                                 <array>
         24        DO_ICALL                                         $7      
         25        SEND_VAR                                                 $7
         26        DO_ICALL                                                 
    9    27        INIT_FCALL                                               'var_dump'
         28        INIT_FCALL                                               'mb_detect_encoding'
         29        SEND_VAR                                                 !0
         30        DO_ICALL                                         $9      
         31        SEND_VAR                                                 $9
         32        DO_ICALL                                                 
         33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.97 ms | 1388 KiB | 19 Q