3v4l.org

run code in 300+ PHP versions simultaneously
<?php phpversion() >= "5.6.15"; $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(); } try { echo ( INF % $two_pow_64); } catch (Error $e) { echo $e->getMessage(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
1 jumps found. (Code = 42) Position 1 = 40
Branch analysis from position: 40
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 29
Branch analysis from position: 29
2 jumps found. (Code = 107) Position 1 = 30, Position 2 = -2
Branch analysis from position: 30
1 jumps found. (Code = 42) Position 1 = 40
Branch analysis from position: 40
Found catch point at position: 36
Branch analysis from position: 36
2 jumps found. (Code = 107) Position 1 = 37, Position 2 = -2
Branch analysis from position: 37
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UZnRM
function name:  (null)
number of ops:  41
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.15', $2
          3        FREE                                                     ~3
    4     4        INIT_FCALL                                               'pow'
          5        SEND_VAL                                                 2
          6        SEND_VAL                                                 64
          7        DO_ICALL                                         $4      
          8        ASSIGN                                                   !0, $4
    5     9        CAST                                          4  ~6      INF
         10        ECHO                                                     ~6
         11        ECHO                                                     '%0A'
    6    12        CAST                                          4  ~7      !0
         13        ECHO                                                     ~7
         14        ECHO                                                     '%0A'
    7    15        CAST                                          4  ~8      INF
         16        MOD                                              ~9      ~8, 2
         17        ECHO                                                     ~9
         18        ECHO                                                     '%0A'
    9    19        CAST                                          4  ~10     INF
         20        CAST                                          4  ~11     !0
         21        DIV                                              ~12     ~10, ~11
         22        ECHO                                                     ~12
   12    23        INIT_FCALL                                               'intdiv'
         24        SEND_VAL                                                 INF
         25        SEND_VAR                                                 !0
         26        DO_ICALL                                         $13     
         27        ECHO                                                     $13
         28      > JMP                                                      ->33
   13    29  E > > CATCH                                       last         'Error'
   14    30    >   INIT_METHOD_CALL                                         !1, 'getMessage'
         31        DO_FCALL                                      0  $14     
         32        ECHO                                                     $14
   18    33    >   MOD                                              ~15     INF, !0
         34        ECHO                                                     ~15
         35      > JMP                                                      ->40
   19    36  E > > CATCH                                       last         'Error'
   20    37    >   INIT_METHOD_CALL                                         !1, 'getMessage'
         38        DO_FCALL                                      0  $16     
         39        ECHO                                                     $16
   21    40    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.51 ms | 1404 KiB | 19 Q