3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i=1000; do { $a = bcdiv('27182818284590452353602874713526624977572470936999595749669676277240766303535475945713821785251664274', --$i, 1); } while (strpos($a, '.') >= 0); echo $i;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 1
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 1
filename:       /in/6lGRo
function name:  (null)
number of ops:  16
compiled vars:  !0 = $i, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1000
    5     1    >   INIT_FCALL_BY_NAME                                       'bcdiv'
          2        SEND_VAL_EX                                              '27182818284590452353602874713526624977572470936999595749669676277240766303535475945713821785251664274'
          3        PRE_DEC                                          ~3      !0
          4        SEND_VAL_EX                                              ~3
          5        SEND_VAL_EX                                              1
          6        DO_FCALL                                      0  $4      
          7        ASSIGN                                                   !1, $4
    6     8        INIT_FCALL                                               'strpos'
          9        SEND_VAR                                                 !1
         10        SEND_VAL                                                 '.'
         11        DO_ICALL                                         $6      
         12        IS_SMALLER_OR_EQUAL                                      0, $6
         13      > JMPNZ                                                    ~7, ->1
    8    14    >   ECHO                                                     !0
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.8 ms | 1394 KiB | 18 Q