3v4l.org

run code in 500+ PHP versions simultaneously
<?php foreach (['pa', 'UCS-', '',] as $name) { try { mb_http_output($name); } catch (ValueError $e) { echo $e->getMessage(), "\n"; } } try { mb_detect_order('aut'); } catch (ValueError $e) { echo $e->getMessage(), "\n"; } var_dump(ini_set('mbstring.detect_order', ',')); try { mb_detect_encoding(bin2hex('1b24422422242424262428242a1b2842'), 'CP50220, ANSI_X3.4-1968,', false); } catch (ValueError $e) { echo $e->getMessage(), "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 1, Position 2 = 12
Branch analysis from position: 1
2 jumps found. (Code = 78) Position 1 = 2, Position 2 = 12
Branch analysis from position: 2
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 1
Branch analysis from position: 1
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 43
Branch analysis from position: 43
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
Found catch point at position: 6
Branch analysis from position: 6
2 jumps found. (Code = 107) Position 1 = 7, Position 2 = -2
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 1
Branch analysis from position: 1
Found catch point at position: 17
Branch analysis from position: 17
2 jumps found. (Code = 107) Position 1 = 18, Position 2 = -2
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 43
Branch analysis from position: 43
Found catch point at position: 38
Branch analysis from position: 38
2 jumps found. (Code = 107) Position 1 = 39, Position 2 = -2
Branch analysis from position: 39
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L5V1Y
function name:  (null)
number of ops:  44
compiled vars:  !0 = $name, !1 = $e
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E > > FE_RESET_R                                           $2      <array>, ->12
          1    > > FE_FETCH_R                                                   $2, !0, ->12
    5     2    >   INIT_FCALL                                                   'mb_http_output'
          3        SEND_VAR                                                     !0
          4        DO_ICALL                                                     
          5      > JMP                                                          ->11
    6     6  E > > CATCH                                           last         'ValueError'
    7     7    >   INIT_METHOD_CALL                                             !1, 'getMessage'
          8        DO_FCALL                                          0  $4      
          9        ECHO                                                         $4
         10        ECHO                                                         '%0A'
    3    11    > > JMP                                                          ->1
         12    >   FE_FREE                                                      $2
   11    13        INIT_FCALL                                                   'mb_detect_order'
         14        SEND_VAL                                                     'aut'
         15        DO_ICALL                                                     
         16      > JMP                                                          ->22
   12    17  E > > CATCH                                           last         'ValueError'
   13    18    >   INIT_METHOD_CALL                                             !1, 'getMessage'
         19        DO_FCALL                                          0  $6      
         20        ECHO                                                         $6
         21        ECHO                                                         '%0A'
   15    22    >   INIT_FCALL                                                   'var_dump'
         23        INIT_FCALL                                                   'ini_set'
         24        SEND_VAL                                                     'mbstring.detect_order'
         25        SEND_VAL                                                     '%2C'
         26        DO_ICALL                                             $7      
         27        SEND_VAR                                                     $7
         28        DO_ICALL                                                     
   18    29        INIT_FCALL                                                   'mb_detect_encoding'
         30        INIT_FCALL                                                   'bin2hex'
         31        SEND_VAL                                                     '1b24422422242424262428242a1b2842'
         32        DO_ICALL                                             $9      
         33        SEND_VAR                                                     $9
         34        SEND_VAL                                                     'CP50220%2C+ANSI_X3.4-1968%2C'
         35        SEND_VAL                                                     <false>
         36        DO_ICALL                                                     
         37      > JMP                                                          ->43
   19    38  E > > CATCH                                           last         'ValueError'
   20    39    >   INIT_METHOD_CALL                                             !1, 'getMessage'
         40        DO_FCALL                                          0  $11     
         41        ECHO                                                         $11
         42        ECHO                                                         '%0A'
   21    43    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
129.9 ms | 488 KiB | 13 Q