3v4l.org

run code in 300+ PHP versions simultaneously
<?php phpversion() >= "5.6.16" or die(); $two_pow_64 = pow(2,64); echo (int) INF,"\n"; echo (int) $two_pow_64,"\n"; echo ((int) INF) % 2, "\n"; echo ((int) INF) / ((int) $two_pow_64); try { echo intdiv( INF, $two_pow_64 ); } catch (Error $e) { echo $e->getMessage(),"\n"; } try { echo ( INF % $two_pow_64); } catch (Error $e) { echo $e->getMessage(),"\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 36
Branch analysis from position: 36
1 jumps found. (Code = 42) Position 1 = 44
Branch analysis from position: 44
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 31
Branch analysis from position: 31
2 jumps found. (Code = 107) Position 1 = 32, Position 2 = -2
Branch analysis from position: 32
1 jumps found. (Code = 42) Position 1 = 44
Branch analysis from position: 44
Found catch point at position: 39
Branch analysis from position: 39
2 jumps found. (Code = 107) Position 1 = 40, Position 2 = -2
Branch analysis from position: 40
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0fuhr
function name:  (null)
number of ops:  45
compiled vars:  !0 = $two_pow_64, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'phpversion'
          1        DO_ICALL                                         $2      
          2        IS_SMALLER_OR_EQUAL                              ~3      '5.6.16', $2
          3      > JMPNZ_EX                                         ~3      ~3, ->6
          4    > > EXIT                                                     
          5*       BOOL                                             ~3      <true>
    4     6    >   INIT_FCALL                                               'pow'
          7        SEND_VAL                                                 2
          8        SEND_VAL                                                 64
          9        DO_ICALL                                         $4      
         10        ASSIGN                                                   !0, $4
    5    11        CAST                                          4  ~6      INF
         12        ECHO                                                     ~6
         13        ECHO                                                     '%0A'
    6    14        CAST                                          4  ~7      !0
         15        ECHO                                                     ~7
         16        ECHO                                                     '%0A'
    7    17        CAST                                          4  ~8      INF
         18        MOD                                              ~9      ~8, 2
         19        ECHO                                                     ~9
         20        ECHO                                                     '%0A'
    9    21        CAST                                          4  ~10     INF
         22        CAST                                          4  ~11     !0
         23        DIV                                              ~12     ~10, ~11
         24        ECHO                                                     ~12
   12    25        INIT_FCALL                                               'intdiv'
         26        SEND_VAL                                                 INF
         27        SEND_VAR                                                 !0
         28        DO_ICALL                                         $13     
         29        ECHO                                                     $13
         30      > JMP                                                      ->36
   13    31  E > > CATCH                                       last         'Error'
   14    32    >   INIT_METHOD_CALL                                         !1, 'getMessage'
         33        DO_FCALL                                      0  $14     
         34        ECHO                                                     $14
         35        ECHO                                                     '%0A'
   18    36    >   MOD                                              ~15     INF, !0
         37        ECHO                                                     ~15
         38      > JMP                                                      ->44
   19    39  E > > CATCH                                       last         'Error'
   20    40    >   INIT_METHOD_CALL                                         !1, 'getMessage'
         41        DO_FCALL                                      0  $16     
         42        ECHO                                                     $16
         43        ECHO                                                     '%0A'
   21    44    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.8 ms | 1400 KiB | 19 Q