3v4l.org

run code in 300+ PHP versions simultaneously
<?php $n = 1234; $m = 0; while ($n > 0) { $m = ($m * 10) + ($n % 10); $n = $n / 10; } var_dump($m); ?>
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 = 3
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 3
Branch analysis from position: 11
Branch analysis from position: 3
filename:       /in/UuJUf
function name:  (null)
number of ops:  15
compiled vars:  !0 = $n, !1 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1234
    3     1        ASSIGN                                                   !1, 0
    5     2      > JMP                                                      ->9
    7     3    >   MUL                                              ~4      !1, 10
          4        MOD                                              ~5      !0, 10
          5        ADD                                              ~6      ~4, ~5
          6        ASSIGN                                                   !1, ~6
    8     7        DIV                                              ~8      !0, 10
          8        ASSIGN                                                   !0, ~8
    5     9    >   IS_SMALLER                                               0, !0
         10      > JMPNZ                                                    ~10, ->3
   11    11    >   INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
   12    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.16 ms | 1394 KiB | 15 Q