3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.2 ms | 940 KiB | 14 Q