3v4l.org

run code in 500+ PHP versions simultaneously
<?php // bcpowmod ( string $base , string $exponent , string $modulus [, int $scale = 0 ] ) : string // Returns the result as a string, or NULL if modulus is 0 or exponent is negative. // ^ false // modulus is 0 assert(is_bool(bcpowmod('2', '2', '0'))); // bcpowmod -> FALSE // exponent is negative assert(is_bool(bcpowmod('2', '-2', '2'))); // bcpowmod -> FALSE // Output proof var_dump(false === bcpowmod('2', '2', '0') && false === bcpowmod('2', '2', '0'));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 30, Position 2 = 37
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 37
filename:       /in/co5Ge
function name:  (null)
number of ops:  40
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   ASSERT_CHECK                                                 
          1        INIT_FCALL                                                   'assert'
          2        INIT_FCALL_BY_NAME                                           'bcpowmod'
          3        SEND_VAL_EX                                                  '2'
          4        SEND_VAL_EX                                                  '2'
          5        SEND_VAL_EX                                                  '0'
          6        DO_FCALL                                          0  $0      
          7        TYPE_CHECK                                       12  ~1      $0
          8        SEND_VAL                                                     ~1
          9        SEND_VAL                                                     'assert%28is_bool%28bcpowmod%28%272%27%2C+%272%27%2C+%270%27%29%29%29'
         10        DO_ICALL                                                     
   11    11        ASSERT_CHECK                                                 
         12        INIT_FCALL                                                   'assert'
         13        INIT_FCALL_BY_NAME                                           'bcpowmod'
         14        SEND_VAL_EX                                                  '2'
         15        SEND_VAL_EX                                                  '-2'
         16        SEND_VAL_EX                                                  '2'
         17        DO_FCALL                                          0  $3      
         18        TYPE_CHECK                                       12  ~4      $3
         19        SEND_VAL                                                     ~4
         20        SEND_VAL                                                     'assert%28is_bool%28bcpowmod%28%272%27%2C+%27-2%27%2C+%272%27%29%29%29'
         21        DO_ICALL                                                     
   14    22        INIT_FCALL                                                   'var_dump'
         23        INIT_FCALL_BY_NAME                                           'bcpowmod'
         24        SEND_VAL_EX                                                  '2'
         25        SEND_VAL_EX                                                  '2'
         26        SEND_VAL_EX                                                  '0'
         27        DO_FCALL                                          0  $6      
         28        TYPE_CHECK                                        4  ~7      $6
         29      > JMPZ_EX                                              ~7      ~7, ->37
         30    >   INIT_FCALL_BY_NAME                                           'bcpowmod'
         31        SEND_VAL_EX                                                  '2'
         32        SEND_VAL_EX                                                  '2'
         33        SEND_VAL_EX                                                  '0'
         34        DO_FCALL                                          0  $8      
         35        TYPE_CHECK                                        4  ~9      $8
         36        BOOL                                                 ~7      ~9
         37    >   SEND_VAL                                                     ~7
         38        DO_ICALL                                                     
         39      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
127.28 ms | 480 KiB | 9 Q