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((int) INF), ((int) $two_pow_64); } catch (Error $e) { echo $e->getMessage(); } try { echo ((int) INF) % ((int) $two_pow_64); } catch (Error $e) { echo $e->getMessage(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 37
Branch analysis from position: 37
1 jumps found. (Code = 42) Position 1 = 46
Branch analysis from position: 46
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 33
Branch analysis from position: 33
2 jumps found. (Code = 107) Position 1 = 34, Position 2 = -2
Branch analysis from position: 34
1 jumps found. (Code = 42) Position 1 = 46
Branch analysis from position: 46
Found catch point at position: 42
Branch analysis from position: 42
2 jumps found. (Code = 107) Position 1 = 43, Position 2 = -2
Branch analysis from position: 43
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5DGUI
function name:  (null)
number of ops:  47
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'
    8    19        BEGIN_SILENCE                                    ~10     
         20        CAST                                          4  ~11     INF
         21        END_SILENCE                                              ~10
         22        CAST                                          4  ~12     !0
         23        DIV                                              ~13     ~11, ~12
         24        ECHO                                                     ~13
   10    25        INIT_FCALL                                               'intdiv'
         26        CAST                                          4  ~14     INF
         27        SEND_VAL                                                 ~14
         28        DO_ICALL                                         $15     
         29        ECHO                                                     $15
         30        CAST                                          4  ~16     !0
         31        ECHO                                                     ~16
         32      > JMP                                                      ->37
   11    33  E > > CATCH                                       last         'Error'
   12    34    >   INIT_METHOD_CALL                                         !1, 'getMessage'
         35        DO_FCALL                                      0  $17     
         36        ECHO                                                     $17
   15    37    >   CAST                                          4  ~18     INF
         38        CAST                                          4  ~19     !0
         39        MOD                                              ~20     ~18, ~19
         40        ECHO                                                     ~20
         41      > JMP                                                      ->46
   16    42  E > > CATCH                                       last         'Error'
   17    43    >   INIT_METHOD_CALL                                         !1, 'getMessage'
         44        DO_FCALL                                      0  $21     
         45        ECHO                                                     $21
   18    46    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.97 ms | 1400 KiB | 19 Q