3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 23; $b = 2; $i = $a; for ($a; $a > 0; $a = $i) { $arr[] = $i % $b; // store remainder in array $i = floor($i/$b); // no integer division var_dump($arr,$i); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 4
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 4
Branch analysis from position: 19
Branch analysis from position: 4
filename:       /in/TCvL2
function name:  (null)
number of ops:  20
compiled vars:  !0 = $a, !1 = $b, !2 = $i, !3 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 23
    3     1        ASSIGN                                                   !1, 2
    4     2        ASSIGN                                                   !2, !0
    6     3      > JMP                                                      ->17
    8     4    >   MOD                                              ~8      !2, !1
          5        ASSIGN_DIM                                               !3
          6        OP_DATA                                                  ~8
    9     7        INIT_FCALL                                               'floor'
          8        DIV                                              ~9      !2, !1
          9        SEND_VAL                                                 ~9
         10        DO_ICALL                                         $10     
         11        ASSIGN                                                   !2, $10
   10    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !3
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                                 
    6    16        ASSIGN                                                   !0, !2
         17    >   IS_SMALLER                                               0, !0
         18      > JMPNZ                                                    ~14, ->4
   11    19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.97 ms | 1395 KiB | 17 Q