3v4l.org

run code in 300+ PHP versions simultaneously
<?php $n=3618; while($n!=0) { $dig=int($n/1000); $n=$n%1000; } echo $dig.' '; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 2
Branch analysis from position: 11
Branch analysis from position: 2
filename:       /in/mNQsO
function name:  (null)
number of ops:  14
compiled vars:  !0 = $n, !1 = $dig
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 3618
    3     1      > JMP                                                      ->9
    5     2    >   INIT_FCALL_BY_NAME                                       'int'
          3        DIV                                              ~3      !0, 1000
          4        SEND_VAL_EX                                              ~3
          5        DO_FCALL                                      0  $4      
          6        ASSIGN                                                   !1, $4
    6     7        MOD                                              ~6      !0, 1000
          8        ASSIGN                                                   !0, ~6
    3     9    >   IS_NOT_EQUAL                                             !0, 0
         10      > JMPNZ                                                    ~8, ->2
    8    11    >   CONCAT                                           ~9      !1, '+'
         12        ECHO                                                     ~9
    9    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.72 ms | 1393 KiB | 13 Q