3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.69 ms | 1397 KiB | 13 Q