3v4l.org

run code in 300+ PHP versions simultaneously
<?php //351 $i=10000; do { $i--; $a = trim(bcdiv('77443926736724935480350070408907763468867438566950415241224148938007881206653777623116301382483374', $i, 10),'.0'); } while (strpos($a, '.') !== false && $i > 1); echo $a . "\n" . $i;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 18, Position 2 = 20
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 1
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 1
Branch analysis from position: 20
filename:       /in/92Aj4
function name:  (null)
number of ops:  25
compiled vars:  !0 = $i, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, 10000
    8     1    >   PRE_DEC                                                  !0
    9     2        INIT_FCALL                                               'trim'
          3        INIT_FCALL_BY_NAME                                       'bcdiv'
          4        SEND_VAL_EX                                              '77443926736724935480350070408907763468867438566950415241224148938007881206653777623116301382483374'
          5        SEND_VAR_EX                                              !0
          6        SEND_VAL_EX                                              10
          7        DO_FCALL                                      0  $4      
          8        SEND_VAR                                                 $4
          9        SEND_VAL                                                 '.0'
         10        DO_ICALL                                         $5      
         11        ASSIGN                                                   !1, $5
   10    12        INIT_FCALL                                               'strpos'
         13        SEND_VAR                                                 !1
         14        SEND_VAL                                                 '.'
         15        DO_ICALL                                         $7      
         16        TYPE_CHECK                                  1018  ~8      $7
         17      > JMPZ_EX                                          ~8      ~8, ->20
         18    >   IS_SMALLER                                       ~9      1, !0
         19        BOOL                                             ~8      ~9
         20    > > JMPNZ                                                    ~8, ->1
   12    21    >   CONCAT                                           ~10     !1, '%0A'
         22        CONCAT                                           ~11     ~10, !0
         23        ECHO                                                     ~11
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.44 ms | 1395 KiB | 17 Q