3v4l.org

run code in 300+ PHP versions simultaneously
<?php // wp-includes/functions.php:L6630 $overloaded = function_exists( 'mb_internal_encoding' ) && ( ini_get( 'mbstring.func_overload' ) & 2 ); var_dump($overloaded); $overloaded = function_exists( 'mb_internal_encoding' ) && ( ini_get( 'dont_exist' ) & 2 ); var_dump($overloaded); // wp-includes/pomo/streams.php:L21 $overloaded = ( ( ini_get( 'mbstring.func_overload' ) & 2 ) != 0 ) && function_exists( 'mb_substr' ); var_dump($overloaded); $overloaded = ( ( ini_get( 'dont_exist' ) & 2 ) != 0 ) && function_exists( 'mb_substr' ); var_dump($overloaded);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 4, Position 2 = 9
Branch analysis from position: 4
2 jumps found. (Code = 46) Position 1 = 17, Position 2 = 22
Branch analysis from position: 17
2 jumps found. (Code = 46) Position 1 = 32, Position 2 = 36
Branch analysis from position: 32
2 jumps found. (Code = 46) Position 1 = 46, Position 2 = 50
Branch analysis from position: 46
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 50
Branch analysis from position: 36
Branch analysis from position: 22
Branch analysis from position: 9
filename:       /in/XgKCr
function name:  (null)
number of ops:  55
compiled vars:  !0 = $overloaded
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'function_exists'
          1        SEND_VAL                                                 'mb_internal_encoding'
          2        DO_ICALL                                         $1      
          3      > JMPZ_EX                                          ~2      $1, ->9
          4    >   INIT_FCALL                                               'ini_get'
          5        SEND_VAL                                                 'mbstring.func_overload'
          6        DO_ICALL                                         $3      
          7        BW_AND                                           ~4      $3, 2
          8        BOOL                                             ~2      ~4
          9    >   ASSIGN                                                   !0, ~2
    5    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
    7    13        INIT_FCALL                                               'function_exists'
         14        SEND_VAL                                                 'mb_internal_encoding'
         15        DO_ICALL                                         $7      
         16      > JMPZ_EX                                          ~8      $7, ->22
         17    >   INIT_FCALL                                               'ini_get'
         18        SEND_VAL                                                 'dont_exist'
         19        DO_ICALL                                         $9      
         20        BW_AND                                           ~10     $9, 2
         21        BOOL                                             ~8      ~10
         22    >   ASSIGN                                                   !0, ~8
    8    23        INIT_FCALL                                               'var_dump'
         24        SEND_VAR                                                 !0
         25        DO_ICALL                                                 
   11    26        INIT_FCALL                                               'ini_get'
         27        SEND_VAL                                                 'mbstring.func_overload'
         28        DO_ICALL                                         $13     
         29        BW_AND                                           ~14     $13, 2
         30        IS_NOT_EQUAL                                     ~15     ~14, 0
         31      > JMPZ_EX                                          ~15     ~15, ->36
         32    >   INIT_FCALL                                               'function_exists'
         33        SEND_VAL                                                 'mb_substr'
         34        DO_ICALL                                         $16     
         35        BOOL                                             ~15     $16
         36    >   ASSIGN                                                   !0, ~15
   12    37        INIT_FCALL                                               'var_dump'
         38        SEND_VAR                                                 !0
         39        DO_ICALL                                                 
   14    40        INIT_FCALL                                               'ini_get'
         41        SEND_VAL                                                 'dont_exist'
         42        DO_ICALL                                         $19     
         43        BW_AND                                           ~20     $19, 2
         44        IS_NOT_EQUAL                                     ~21     ~20, 0
         45      > JMPZ_EX                                          ~21     ~21, ->50
         46    >   INIT_FCALL                                               'function_exists'
         47        SEND_VAL                                                 'mb_substr'
         48        DO_ICALL                                         $22     
         49        BOOL                                             ~21     $22
         50    >   ASSIGN                                                   !0, ~21
   15    51        INIT_FCALL                                               'var_dump'
         52        SEND_VAR                                                 !0
         53        DO_ICALL                                                 
         54      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
135.81 ms | 1466 KiB | 16 Q