3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo 'Hexadecimal', \PHP_EOL; try { var_dump(gmp_init('0X')); } catch (\TypeError $e) { echo $e->getMessage(), \PHP_EOL; } try { var_dump(gmp_init('0x')); } catch (\TypeError $e) { echo $e->getMessage(), \PHP_EOL; } try { var_dump(gmp_init('0X', 16)); } catch (\TypeError $e) { echo $e->getMessage(), \PHP_EOL; } try { var_dump(gmp_init('0x', 16)); } catch (\TypeError $e) { echo $e->getMessage(), \PHP_EOL; } echo 'Binary', \PHP_EOL; try { var_dump(gmp_init('0B')); } catch (\TypeError $e) { echo $e->getMessage(), \PHP_EOL; } try { var_dump(gmp_init('0b')); } catch (\TypeError $e) { echo $e->getMessage(), \PHP_EOL; } try { var_dump(gmp_init('0B', 2)); } catch (\TypeError $e) { echo $e->getMessage(), \PHP_EOL; } try { var_dump(gmp_init('0b', 2)); } catch (\TypeError $e) { echo $e->getMessage(), \PHP_EOL; } echo "Done\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 39
Branch analysis from position: 39
1 jumps found. (Code = 42) Position 1 = 52
Branch analysis from position: 52
1 jumps found. (Code = 42) Position 1 = 66
Branch analysis from position: 66
1 jumps found. (Code = 42) Position 1 = 78
Branch analysis from position: 78
1 jumps found. (Code = 42) Position 1 = 91
Branch analysis from position: 91
1 jumps found. (Code = 42) Position 1 = 104
Branch analysis from position: 104
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 9
Branch analysis from position: 9
2 jumps found. (Code = 107) Position 1 = 10, Position 2 = -2
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
Found catch point at position: 21
Branch analysis from position: 21
2 jumps found. (Code = 107) Position 1 = 22, Position 2 = -2
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 39
Branch analysis from position: 39
Found catch point at position: 34
Branch analysis from position: 34
2 jumps found. (Code = 107) Position 1 = 35, Position 2 = -2
Branch analysis from position: 35
1 jumps found. (Code = 42) Position 1 = 52
Branch analysis from position: 52
Found catch point at position: 47
Branch analysis from position: 47
2 jumps found. (Code = 107) Position 1 = 48, Position 2 = -2
Branch analysis from position: 48
1 jumps found. (Code = 42) Position 1 = 66
Branch analysis from position: 66
Found catch point at position: 61
Branch analysis from position: 61
2 jumps found. (Code = 107) Position 1 = 62, Position 2 = -2
Branch analysis from position: 62
1 jumps found. (Code = 42) Position 1 = 78
Branch analysis from position: 78
Found catch point at position: 73
Branch analysis from position: 73
2 jumps found. (Code = 107) Position 1 = 74, Position 2 = -2
Branch analysis from position: 74
1 jumps found. (Code = 42) Position 1 = 91
Branch analysis from position: 91
Found catch point at position: 86
Branch analysis from position: 86
2 jumps found. (Code = 107) Position 1 = 87, Position 2 = -2
Branch analysis from position: 87
1 jumps found. (Code = 42) Position 1 = 104
Branch analysis from position: 104
Found catch point at position: 99
Branch analysis from position: 99
2 jumps found. (Code = 107) Position 1 = 100, Position 2 = -2
Branch analysis from position: 100
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ArU7r
function name:  (null)
number of ops:  106
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ECHO                                                     'Hexadecimal'
          1        ECHO                                                     '%0A'
    4     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL_BY_NAME                                       'gmp_init'
          4        SEND_VAL_EX                                              '0X'
          5        DO_FCALL                                      0  $1      
          6        SEND_VAR                                                 $1
          7        DO_ICALL                                                 
          8      > JMP                                                      ->14
    5     9  E > > CATCH                                       last         'TypeError'
    6    10    >   INIT_METHOD_CALL                                         !0, 'getMessage'
         11        DO_FCALL                                      0  $3      
         12        ECHO                                                     $3
         13        ECHO                                                     '%0A'
    9    14    >   INIT_FCALL                                               'var_dump'
         15        INIT_FCALL_BY_NAME                                       'gmp_init'
         16        SEND_VAL_EX                                              '0x'
         17        DO_FCALL                                      0  $4      
         18        SEND_VAR                                                 $4
         19        DO_ICALL                                                 
         20      > JMP                                                      ->26
   10    21  E > > CATCH                                       last         'TypeError'
   11    22    >   INIT_METHOD_CALL                                         !0, 'getMessage'
         23        DO_FCALL                                      0  $6      
         24        ECHO                                                     $6
         25        ECHO                                                     '%0A'
   14    26    >   INIT_FCALL                                               'var_dump'
         27        INIT_FCALL_BY_NAME                                       'gmp_init'
         28        SEND_VAL_EX                                              '0X'
         29        SEND_VAL_EX                                              16
         30        DO_FCALL                                      0  $7      
         31        SEND_VAR                                                 $7
         32        DO_ICALL                                                 
         33      > JMP                                                      ->39
   15    34  E > > CATCH                                       last         'TypeError'
   16    35    >   INIT_METHOD_CALL                                         !0, 'getMessage'
         36        DO_FCALL                                      0  $9      
         37        ECHO                                                     $9
         38        ECHO                                                     '%0A'
   19    39    >   INIT_FCALL                                               'var_dump'
         40        INIT_FCALL_BY_NAME                                       'gmp_init'
         41        SEND_VAL_EX                                              '0x'
         42        SEND_VAL_EX                                              16
         43        DO_FCALL                                      0  $10     
         44        SEND_VAR                                                 $10
         45        DO_ICALL                                                 
         46      > JMP                                                      ->52
   20    47  E > > CATCH                                       last         'TypeError'
   21    48    >   INIT_METHOD_CALL                                         !0, 'getMessage'
         49        DO_FCALL                                      0  $12     
         50        ECHO                                                     $12
         51        ECHO                                                     '%0A'
   24    52    >   ECHO                                                     'Binary'
         53        ECHO                                                     '%0A'
   26    54        INIT_FCALL                                               'var_dump'
         55        INIT_FCALL_BY_NAME                                       'gmp_init'
         56        SEND_VAL_EX                                              '0B'
         57        DO_FCALL                                      0  $13     
         58        SEND_VAR                                                 $13
         59        DO_ICALL                                                 
         60      > JMP                                                      ->66
   27    61  E > > CATCH                                       last         'TypeError'
   28    62    >   INIT_METHOD_CALL                                         !0, 'getMessage'
         63        DO_FCALL                                      0  $15     
         64        ECHO                                                     $15
         65        ECHO                                                     '%0A'
   31    66    >   INIT_FCALL                                               'var_dump'
         67        INIT_FCALL_BY_NAME                                       'gmp_init'
         68        SEND_VAL_EX                                              '0b'
         69        DO_FCALL                                      0  $16     
         70        SEND_VAR                                                 $16
         71        DO_ICALL                                                 
         72      > JMP                                                      ->78
   32    73  E > > CATCH                                       last         'TypeError'
   33    74    >   INIT_METHOD_CALL                                         !0, 'getMessage'
         75        DO_FCALL                                      0  $18     
         76        ECHO                                                     $18
         77        ECHO                                                     '%0A'
   36    78    >   INIT_FCALL                                               'var_dump'
         79        INIT_FCALL_BY_NAME                                       'gmp_init'
         80        SEND_VAL_EX                                              '0B'
         81        SEND_VAL_EX                                              2
         82        DO_FCALL                                      0  $19     
         83        SEND_VAR                                                 $19
         84        DO_ICALL                                                 
         85      > JMP                                                      ->91
   37    86  E > > CATCH                                       last         'TypeError'
   38    87    >   INIT_METHOD_CALL                                         !0, 'getMessage'
         88        DO_FCALL                                      0  $21     
         89        ECHO                                                     $21
         90        ECHO                                                     '%0A'
   41    91    >   INIT_FCALL                                               'var_dump'
         92        INIT_FCALL_BY_NAME                                       'gmp_init'
         93        SEND_VAL_EX                                              '0b'
         94        SEND_VAL_EX                                              2
         95        DO_FCALL                                      0  $22     
         96        SEND_VAR                                                 $22
         97        DO_ICALL                                                 
         98      > JMP                                                      ->104
   42    99  E > > CATCH                                       last         'TypeError'
   43   100    >   INIT_METHOD_CALL                                         !0, 'getMessage'
        101        DO_FCALL                                      0  $24     
        102        ECHO                                                     $24
        103        ECHO                                                     '%0A'
   46   104    >   ECHO                                                     'Done%0A'
        105      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.18 ms | 1404 KiB | 15 Q