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 = 35
Branch analysis from position: 35
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: 40
Branch analysis from position: 40
2 jumps found. (Code = 107) Position 1 = 41, Position 2 = -2
Branch analysis from position: 41
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CjRCr
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.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        CAST                                          4  ~10     INF
         20        CAST                                          4  ~11     !0
         21        DIV                                              ~12     ~10, ~11
         22        ECHO                                                     ~12
   10    23        INIT_FCALL                                               'intdiv'
         24        CAST                                          4  ~13     INF
         25        SEND_VAL                                                 ~13
         26        DO_ICALL                                         $14     
         27        ECHO                                                     $14
         28        CAST                                          4  ~15     !0
         29        ECHO                                                     ~15
         30      > JMP                                                      ->35
   11    31  E > > CATCH                                       last         'Error'
   12    32    >   INIT_METHOD_CALL                                         !1, 'getMessage'
         33        DO_FCALL                                      0  $16     
         34        ECHO                                                     $16
   15    35    >   CAST                                          4  ~17     INF
         36        CAST                                          4  ~18     !0
         37        MOD                                              ~19     ~17, ~18
         38        ECHO                                                     ~19
         39      > JMP                                                      ->44
   16    40  E > > CATCH                                       last         'Error'
   17    41    >   INIT_METHOD_CALL                                         !1, 'getMessage'
         42        DO_FCALL                                      0  $20     
         43        ECHO                                                     $20
   18    44    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.51 ms | 1400 KiB | 19 Q