3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.11 ms | 1400 KiB | 19 Q